diff --git a/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php b/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php index 3d1ec172f1..467635805e 100644 --- a/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php +++ b/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php @@ -66,7 +66,7 @@ final class AccessDecisionManager implements AccessDecisionManagerInterface $accessDecision->strategy = $this->strategy instanceof \Stringable ? $this->strategy : get_debug_type($this->strategy); return $accessDecision->isGranted = $this->strategy->decide( - $this->collectResults($token, $attributes, $object, $accessDecision) + $this->collectResults($token, $attributes, $object, $accessDecision), $accessDecision ); } diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/TraceableVoter.php b/src/Symfony/Component/Security/Core/Authorization/Voter/TraceableVoter.php index 102f960dbb..201b169868 100644 --- a/src/Symfony/Component/Security/Core/Authorization/Voter/TraceableVoter.php +++ b/src/Symfony/Component/Security/Core/Authorization/Voter/TraceableVoter.php @@ -30,7 +30,7 @@ class TraceableVoter implements CacheableVoterInterface ) { } - public function vote(TokenInterface $token, mixed $subject, array $attributes, Vote $vote = new Vote()): int + public function vote(TokenInterface $token, mixed $subject, array $attributes, Vote &$vote = new Vote()): int { $result = $this->voter->vote($token, $subject, $attributes, $vote); diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/Vote.php b/src/Symfony/Component/Security/Core/Authorization/Voter/Vote.php index 450070e1cc..e933c57d99 100644 --- a/src/Symfony/Component/Security/Core/Authorization/Voter/Vote.php +++ b/src/Symfony/Component/Security/Core/Authorization/Voter/Vote.php @@ -11,7 +11,7 @@ namespace Symfony\Component\Security\Core\Authorization\Voter; -final class Vote +class Vote { /** * @var class-string|string