Skip to content

Commit 819b107

Browse files
committed
minor #60148 Remove non-final readonly classes (nicolas-grekas)
This PR was merged into the 7.3 branch. Discussion ---------- Remove non-final readonly classes | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Those are just annoying from a maintainer PoV, without providing us any extra maintenance flexibility (quite the contrary). Commits ------- bbba700c0b1 Remove non-final readonly classes
2 parents 626eec0 + 6298c3c commit 819b107

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Attribute/IsGrantedContext.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
use Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter;
1818
use Symfony\Component\Security\Core\User\UserInterface;
1919

20-
readonly class IsGrantedContext implements AuthorizationCheckerInterface
20+
class IsGrantedContext implements AuthorizationCheckerInterface
2121
{
2222
public function __construct(
23-
public TokenInterface $token,
24-
public ?UserInterface $user,
25-
private AuthorizationCheckerInterface $authorizationChecker,
23+
public readonly TokenInterface $token,
24+
public readonly ?UserInterface $user,
25+
private readonly AuthorizationCheckerInterface $authorizationChecker,
2626
) {
2727
}
2828

0 commit comments

Comments
 (0)