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.
2 parents 30a896a + f4e9d00 commit 9a88524Copy full SHA for 9a88524
security/voters.rst
@@ -44,8 +44,8 @@ which makes creating a voter even easier::
44
45
abstract class Voter implements VoterInterface
46
{
47
- abstract protected function supports($attribute, $subject);
48
- abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token);
+ abstract protected function supports(string $attribute, $subject);
+ abstract protected function voteOnAttribute(string $attribute, $subject, TokenInterface $token);
49
}
50
51
.. _how-to-use-the-voter-in-a-controller:
0 commit comments