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 1c62383 commit 6c214c2Copy full SHA for 6c214c2
security/voters.rst
@@ -47,8 +47,8 @@ which makes creating a voter even easier::
47
48
abstract class Voter implements VoterInterface
49
{
50
- abstract protected function supports(string $attribute, mixed $subject);
51
- abstract protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token);
+ abstract protected function supports(string $attribute, mixed $subject): bool;
+ abstract protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool;
52
}
53
54
.. _how-to-use-the-voter-in-a-controller:
0 commit comments