Skip to content

Commit 0f1da39

Browse files
committed
Fix Symfony deprecation
1 parent 54d5e0d commit 0f1da39

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bundle/Security/Authorization/Voter/UserRegisterVoter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\HttpFoundation\Request;
1010
use Symfony\Component\HttpFoundation\RequestStack;
1111
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
12+
use Symfony\Component\Security\Core\Authorization\Voter\Vote;
1213
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
1314

1415
/**
@@ -21,7 +22,7 @@ public function __construct(
2122
private RequestStack $requestStack,
2223
) {}
2324

24-
public function vote(TokenInterface $token, mixed $subject, array $attributes): int
25+
public function vote(TokenInterface $token, mixed $subject, array $attributes, ?Vote $vote = null): int
2526
{
2627
foreach ($attributes as $attribute) {
2728
if (!$this->supportsAttribute($attribute)) {

0 commit comments

Comments
 (0)