Skip to content

Commit f8dd322

Browse files
mohamedGasmiixabbuh
authored andcommitted
[Security] update Voter return type
1 parent 5cc1339 commit f8dd322

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
@@ -56,8 +56,8 @@ which makes creating a voter even easier::
5656

5757
abstract class Voter implements VoterInterface
5858
{
59-
abstract protected function supports($attribute, $subject);
60-
abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token);
59+
abstract protected function supports($attribute, $subject): bool;
60+
abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool;
6161
}
6262

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

0 commit comments

Comments
 (0)