Skip to content

Commit 10cce36

Browse files
committed
Remove FQCN type hints on properties
1 parent 7ae7dda commit 10cce36

21 files changed

+30
-31
lines changed

Authentication/RememberMe/CacheTokenVerifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class CacheTokenVerifier implements TokenVerifierInterface
2020
{
21-
private CacheItemPoolInterface $cache;
21+
private $cache;
2222
private int $outdatedTokenTtl;
2323
private string $cacheKeyPrefix;
2424

Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
abstract class AbstractToken implements TokenInterface, \Serializable
2323
{
24-
private ?UserInterface $user = null;
24+
private $user = null;
2525
private array $roleNames = [];
2626
private array $attributes = [];
2727

Authentication/Token/Storage/TokenStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class TokenStorage implements TokenStorageInterface, ResetInterface
2626
{
27-
private ?TokenInterface $token = null;
27+
private $token = null;
2828
private ?\Closure $initializer = null;
2929

3030
/**

Authentication/Token/Storage/UsageTrackingTokenStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
*/
2525
final class UsageTrackingTokenStorage implements TokenStorageInterface, ServiceSubscriberInterface
2626
{
27-
private TokenStorageInterface $storage;
28-
private ContainerInterface $container;
27+
private $storage;
28+
private $container;
2929
private bool $enableUsageTracking = false;
3030

3131
public function __construct(TokenStorageInterface $storage, ContainerInterface $container)

Authentication/Token/SwitchUserToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class SwitchUserToken extends UsernamePasswordToken
2222
{
23-
private TokenInterface $originalToken;
23+
private $originalToken;
2424
private ?string $originatedFromUri = null;
2525

2626
/**

Authorization/AccessDecisionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class AccessDecisionManager implements AccessDecisionManagerInterface
3535
private iterable $voters;
3636
private array $votersCacheAttributes = [];
3737
private array $votersCacheObject = [];
38-
private AccessDecisionStrategyInterface $strategy;
38+
private $strategy;
3939

4040
/**
4141
* @param iterable<mixed, VoterInterface> $voters An array or an iterator of VoterInterface instances

Authorization/AuthorizationChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
class AuthorizationChecker implements AuthorizationCheckerInterface
2727
{
28-
private TokenStorageInterface $tokenStorage;
29-
private AccessDecisionManagerInterface $accessDecisionManager;
28+
private $tokenStorage;
29+
private $accessDecisionManager;
3030

3131
public function __construct(TokenStorageInterface $tokenStorage, AccessDecisionManagerInterface $accessDecisionManager, bool $exceptionOnNoToken = false)
3232
{

Authorization/TraceableAccessDecisionManager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Core\Authorization;
1313

1414
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
15-
use Symfony\Component\Security\Core\Authorization\Strategy\AccessDecisionStrategyInterface;
1615
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
1716

1817
/**
@@ -25,8 +24,8 @@
2524
*/
2625
class TraceableAccessDecisionManager implements AccessDecisionManagerInterface
2726
{
28-
private AccessDecisionManagerInterface $manager;
29-
private AccessDecisionStrategyInterface $strategy;
27+
private $manager;
28+
private $strategy;
3029
/** @var iterable<mixed, VoterInterface> */
3130
private iterable $voters = [];
3231
private array $decisionLog = []; // All decision logs

Authorization/Voter/AuthenticatedVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AuthenticatedVoter implements CacheableVoterInterface
3333
public const IS_REMEMBERED = 'IS_REMEMBERED';
3434
public const PUBLIC_ACCESS = 'PUBLIC_ACCESS';
3535

36-
private AuthenticationTrustResolverInterface $authenticationTrustResolver;
36+
private $authenticationTrustResolver;
3737

3838
public function __construct(AuthenticationTrustResolverInterface $authenticationTrustResolver)
3939
{

Authorization/Voter/ExpressionVoter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
*/
2727
class ExpressionVoter implements CacheableVoterInterface
2828
{
29-
private ExpressionLanguage $expressionLanguage;
30-
private AuthenticationTrustResolverInterface $trustResolver;
31-
private AuthorizationCheckerInterface $authChecker;
32-
private ?RoleHierarchyInterface $roleHierarchy;
29+
private $expressionLanguage;
30+
private $trustResolver;
31+
private $authChecker;
32+
private $roleHierarchy;
3333

3434
public function __construct(ExpressionLanguage $expressionLanguage, AuthenticationTrustResolverInterface $trustResolver, AuthorizationCheckerInterface $authChecker, RoleHierarchyInterface $roleHierarchy = null)
3535
{

0 commit comments

Comments
 (0)