Skip to content

Commit 6c214c2

Browse files
[Security] update Voter return type
1 parent 1c62383 commit 6c214c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/voters.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ which makes creating a voter even easier::
4747

4848
abstract class Voter implements VoterInterface
4949
{
50-
abstract protected function supports(string $attribute, mixed $subject);
51-
abstract protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token);
50+
abstract protected function supports(string $attribute, mixed $subject): bool;
51+
abstract protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool;
5252
}
5353

5454
.. _how-to-use-the-voter-in-a-controller:

0 commit comments

Comments
 (0)