8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc1339 commit f8dd322Copy full SHA for f8dd322
security/voters.rst
@@ -56,8 +56,8 @@ which makes creating a voter even easier::
56
57
abstract class Voter implements VoterInterface
58
{
59
- abstract protected function supports($attribute, $subject);
60
- abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token);
+ abstract protected function supports($attribute, $subject): bool;
+ abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool;
61
}
62
63
.. _how-to-use-the-voter-in-a-controller:
0 commit comments