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 30a896a commit f4e9d00Copy full SHA for f4e9d00
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