Skip to content

Commit 2e8a909

Browse files
committed
Remove FQCN type hints on properties
1 parent 6530589 commit 2e8a909

File tree

53 files changed

+119
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+119
-121
lines changed

Authentication/AuthenticationUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class AuthenticationUtils
2525
{
26-
private RequestStack $requestStack;
26+
private $requestStack;
2727

2828
public function __construct(RequestStack $requestStack)
2929
{

Authentication/AuthenticatorManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
class AuthenticatorManager implements AuthenticatorManagerInterface, UserAuthenticatorInterface
4747
{
4848
private iterable $authenticators;
49-
private TokenStorageInterface $tokenStorage;
50-
private EventDispatcherInterface $eventDispatcher;
49+
private $tokenStorage;
50+
private $eventDispatcher;
5151
private bool $eraseCredentials;
52-
private ?LoggerInterface $logger;
52+
private $logger;
5353
private string $firewallName;
5454
private bool $hideUserNotFoundExceptions;
5555
private array $requiredBadges;

Authentication/CustomAuthenticationFailureHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class CustomAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface
2222
{
23-
private AuthenticationFailureHandlerInterface $handler;
23+
private $handler;
2424

2525
/**
2626
* @param array $options Options for processing a successful authentication attempt

Authentication/CustomAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
2222
{
23-
private AuthenticationSuccessHandlerInterface $handler;
23+
private $handler;
2424

2525
/**
2626
* @param array $options Options for processing a successful authentication attempt

Authenticator/AbstractPreAuthenticatedAuthenticator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
*/
3737
abstract class AbstractPreAuthenticatedAuthenticator implements InteractiveAuthenticatorInterface
3838
{
39-
private UserProviderInterface $userProvider;
40-
private TokenStorageInterface $tokenStorage;
39+
private $userProvider;
40+
private $tokenStorage;
4141
private string $firewallName;
42-
private ?LoggerInterface $logger;
42+
private $logger;
4343

4444
public function __construct(UserProviderInterface $userProvider, TokenStorageInterface $tokenStorage, string $firewallName, LoggerInterface $logger = null)
4545
{

Authenticator/Debug/TraceableAuthenticator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
*/
3030
final class TraceableAuthenticator implements AuthenticatorInterface, InteractiveAuthenticatorInterface, AuthenticationEntryPointInterface
3131
{
32-
private AuthenticatorInterface $authenticator;
33-
private ?Passport $passport = null;
32+
private $authenticator;
33+
private $passport = null;
3434
private ?float $duration = null;
35-
private ClassStub|string $stub;
35+
private $stub;
3636

3737
public function __construct(AuthenticatorInterface $authenticator)
3838
{

Authenticator/Debug/TraceableAuthenticatorManagerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
final class TraceableAuthenticatorManagerListener extends AbstractListener
2626
{
27-
private AuthenticatorManagerListener $authenticationManagerListener;
27+
private $authenticationManagerListener;
2828
private array $authenticatorsInfo = [];
2929
private bool $hasVardumper;
3030

Authenticator/FormLoginAuthenticator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
*/
4242
class FormLoginAuthenticator extends AbstractLoginFormAuthenticator
4343
{
44-
private HttpUtils $httpUtils;
45-
private UserProviderInterface $userProvider;
46-
private AuthenticationSuccessHandlerInterface $successHandler;
47-
private AuthenticationFailureHandlerInterface $failureHandler;
44+
private $httpUtils;
45+
private $userProvider;
46+
private $successHandler;
47+
private $failureHandler;
4848
private array $options;
49-
private HttpKernelInterface $httpKernel;
49+
private $httpKernel;
5050

5151
public function __construct(HttpUtils $httpUtils, UserProviderInterface $userProvider, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array $options)
5252
{

Authenticator/HttpBasicAuthenticator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
class HttpBasicAuthenticator implements AuthenticatorInterface, AuthenticationEntryPointInterface
3535
{
3636
private string $realmName;
37-
private UserProviderInterface $userProvider;
38-
private ?LoggerInterface $logger;
37+
private $userProvider;
38+
private $logger;
3939

4040
public function __construct(string $realmName, UserProviderInterface $userProvider, LoggerInterface $logger = null)
4141
{

Authenticator/JsonLoginAuthenticator.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
class JsonLoginAuthenticator implements InteractiveAuthenticatorInterface
4747
{
4848
private array $options;
49-
private HttpUtils $httpUtils;
50-
private UserProviderInterface $userProvider;
51-
private PropertyAccessorInterface $propertyAccessor;
52-
private ?AuthenticationSuccessHandlerInterface $successHandler;
53-
private ?AuthenticationFailureHandlerInterface $failureHandler;
54-
private ?TranslatorInterface $translator = null;
49+
private $httpUtils;
50+
private $userProvider;
51+
private $propertyAccessor;
52+
private $successHandler;
53+
private $failureHandler;
54+
private $translator = null;
5555

5656
public function __construct(HttpUtils $httpUtils, UserProviderInterface $userProvider, AuthenticationSuccessHandlerInterface $successHandler = null, AuthenticationFailureHandlerInterface $failureHandler = null, array $options = [], PropertyAccessorInterface $propertyAccessor = null)
5757
{

Authenticator/LoginLinkAuthenticator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
*/
3232
final class LoginLinkAuthenticator extends AbstractAuthenticator implements InteractiveAuthenticatorInterface
3333
{
34-
private LoginLinkHandlerInterface $loginLinkHandler;
35-
private HttpUtils $httpUtils;
36-
private AuthenticationSuccessHandlerInterface $successHandler;
37-
private AuthenticationFailureHandlerInterface $failureHandler;
34+
private $loginLinkHandler;
35+
private $httpUtils;
36+
private $successHandler;
37+
private $failureHandler;
3838
private array $options;
3939

4040
public function __construct(LoginLinkHandlerInterface $loginLinkHandler, HttpUtils $httpUtils, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array $options)

Authenticator/Passport/Badge/PasswordUpgradeBadge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class PasswordUpgradeBadge implements BadgeInterface
2727
{
2828
private ?string $plaintextPassword = null;
29-
private ?PasswordUpgraderInterface $passwordUpgrader;
29+
private $passwordUpgrader;
3030

3131
/**
3232
* @param string $plaintextPassword The presented password, used in the rehash

Authenticator/Passport/Badge/UserBadge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UserBadge implements BadgeInterface
2929
private string $userIdentifier;
3030
/** @var callable|null */
3131
private $userLoader;
32-
private UserInterface $user;
32+
private $user;
3333

3434
/**
3535
* Initializes the user badge.

Authenticator/RememberMeAuthenticator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
*/
4444
class RememberMeAuthenticator implements InteractiveAuthenticatorInterface
4545
{
46-
private RememberMeHandlerInterface $rememberMeHandler;
46+
private $rememberMeHandler;
4747
private string $secret;
48-
private TokenStorageInterface $tokenStorage;
48+
private $tokenStorage;
4949
private string $cookieName;
50-
private ?LoggerInterface $logger;
50+
private $logger;
5151

5252
public function __construct(RememberMeHandlerInterface $rememberMeHandler, string $secret, TokenStorageInterface $tokenStorage, string $cookieName, LoggerInterface $logger = null)
5353
{

Controller/UserValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
final class UserValueResolver implements ArgumentValueResolverInterface
2828
{
29-
private TokenStorageInterface $tokenStorage;
29+
private $tokenStorage;
3030

3131
public function __construct(TokenStorageInterface $tokenStorage)
3232
{

Event/AuthenticationTokenCreatedEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
*/
2323
class AuthenticationTokenCreatedEvent extends Event
2424
{
25-
private TokenInterface $authenticatedToken;
26-
private Passport $passport;
25+
private $authenticatedToken;
26+
private $passport;
2727

2828
public function __construct(TokenInterface $token, Passport $passport)
2929
{

Event/CheckPassportEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
*/
2727
class CheckPassportEvent extends Event
2828
{
29-
private AuthenticatorInterface $authenticator;
30-
private Passport $passport;
29+
private $authenticator;
30+
private $passport;
3131

3232
public function __construct(AuthenticatorInterface $authenticator, Passport $passport)
3333
{

Event/InteractiveLoginEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
final class InteractiveLoginEvent extends Event
2222
{
23-
private Request $request;
24-
private TokenInterface $authenticationToken;
23+
private $request;
24+
private $authenticationToken;
2525

2626
public function __construct(Request $request, TokenInterface $authenticationToken)
2727
{

Event/LoginFailureEvent.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
*/
2929
class LoginFailureEvent extends Event
3030
{
31-
private AuthenticationException $exception;
32-
private AuthenticatorInterface $authenticator;
33-
private Request $request;
34-
private ?Response $response;
31+
private $exception;
32+
private $authenticator;
33+
private $request;
34+
private $response;
3535
private string $firewallName;
36-
private ?Passport $passport;
36+
private $passport;
3737

3838
public function __construct(AuthenticationException $exception, AuthenticatorInterface $authenticator, Request $request, ?Response $response, string $firewallName, Passport $passport = null)
3939
{

Event/LoginSuccessEvent.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
*/
3232
class LoginSuccessEvent extends Event
3333
{
34-
private AuthenticatorInterface $authenticator;
35-
private Passport $passport;
36-
private TokenInterface $authenticatedToken;
37-
private Request $request;
38-
private ?Response $response;
34+
private $authenticator;
35+
private $passport;
36+
private $authenticatedToken;
37+
private $request;
38+
private $response;
3939
private string $firewallName;
4040

4141
public function __construct(AuthenticatorInterface $authenticator, Passport $passport, TokenInterface $authenticatedToken, Request $request, ?Response $response, string $firewallName)

Event/LogoutEvent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
*/
2222
class LogoutEvent extends Event
2323
{
24-
private Request $request;
25-
private ?Response $response = null;
26-
private ?TokenInterface $token;
24+
private $request;
25+
private $response = null;
26+
private $token;
2727

2828
public function __construct(Request $request, ?TokenInterface $token)
2929
{

Event/SwitchUserEvent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424
final class SwitchUserEvent extends Event
2525
{
26-
private Request $request;
27-
private UserInterface $targetUser;
28-
private ?TokenInterface $token;
26+
private $request;
27+
private $targetUser;
28+
private $token;
2929

3030
public function __construct(Request $request, UserInterface $targetUser, TokenInterface $token = null)
3131
{

Event/TokenDeauthenticatedEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
*/
3131
final class TokenDeauthenticatedEvent extends Event
3232
{
33-
private TokenInterface $originalToken;
34-
private Request $request;
33+
private $originalToken;
34+
private $request;
3535

3636
public function __construct(TokenInterface $originalToken, Request $request)
3737
{

EventListener/CheckCredentialsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class CheckCredentialsListener implements EventSubscriberInterface
3333
{
34-
private PasswordHasherFactoryInterface $hasherFactory;
34+
private $hasherFactory;
3535

3636
public function __construct(PasswordHasherFactoryInterface $hasherFactory)
3737
{

EventListener/CheckRememberMeConditionsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class CheckRememberMeConditionsListener implements EventSubscriberInterface
3737
{
3838
private array $options;
39-
private ?LoggerInterface $logger;
39+
private $logger;
4040

4141
public function __construct(array $options = [], LoggerInterface $logger = null)
4242
{

EventListener/CsrfProtectionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class CsrfProtectionListener implements EventSubscriberInterface
2727
{
28-
private CsrfTokenManagerInterface $csrfTokenManager;
28+
private $csrfTokenManager;
2929

3030
public function __construct(CsrfTokenManagerInterface $csrfTokenManager)
3131
{

EventListener/CsrfTokenClearingLogoutListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class CsrfTokenClearingLogoutListener implements EventSubscriberInterface
2424
{
25-
private ClearableTokenStorageInterface $csrfTokenStorage;
25+
private $csrfTokenStorage;
2626

2727
public function __construct(ClearableTokenStorageInterface $csrfTokenStorage)
2828
{

EventListener/DefaultLogoutListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class DefaultLogoutListener implements EventSubscriberInterface
2727
{
28-
private HttpUtils $httpUtils;
28+
private $httpUtils;
2929
private string $targetUrl;
3030

3131
public function __construct(HttpUtils $httpUtils, string $targetUrl = '/')

EventListener/LoginThrottlingListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
final class LoginThrottlingListener implements EventSubscriberInterface
2727
{
28-
private RequestStack $requestStack;
29-
private RequestRateLimiterInterface $limiter;
28+
private $requestStack;
29+
private $limiter;
3030

3131
public function __construct(RequestStack $requestStack, RequestRateLimiterInterface $limiter)
3232
{

EventListener/PasswordMigratingListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class PasswordMigratingListener implements EventSubscriberInterface
2929
{
30-
private PasswordHasherFactoryInterface $hasherFactory;
30+
private $hasherFactory;
3131

3232
public function __construct(PasswordHasherFactoryInterface $hasherFactory)
3333
{

EventListener/RememberMeListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
*/
3535
class RememberMeListener implements EventSubscriberInterface
3636
{
37-
private RememberMeHandlerInterface $rememberMeHandler;
38-
private ?LoggerInterface $logger;
37+
private $rememberMeHandler;
38+
private $logger;
3939

4040
public function __construct(RememberMeHandlerInterface $rememberMeHandler, LoggerInterface $logger = null)
4141
{

EventListener/SessionStrategyListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class SessionStrategyListener implements EventSubscriberInterface
2929
{
30-
private SessionAuthenticationStrategyInterface $sessionAuthenticationStrategy;
30+
private $sessionAuthenticationStrategy;
3131

3232
public function __construct(SessionAuthenticationStrategyInterface $sessionAuthenticationStrategy)
3333
{

EventListener/UserCheckerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class UserCheckerListener implements EventSubscriberInterface
2727
{
28-
private UserCheckerInterface $userChecker;
28+
private $userChecker;
2929

3030
public function __construct(UserCheckerInterface $userChecker)
3131
{

EventListener/UserProviderListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class UserProviderListener
2727
{
28-
private UserProviderInterface $userProvider;
28+
private $userProvider;
2929

3030
public function __construct(UserProviderInterface $userProvider)
3131
{

0 commit comments

Comments
 (0)