Skip to content

Commit f4e9d00

Browse files
authored
Update voters.rst
1 parent 30a896a commit f4e9d00

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

4545
abstract class Voter implements VoterInterface
4646
{
47-
abstract protected function supports($attribute, $subject);
48-
abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token);
47+
abstract protected function supports(string $attribute, $subject);
48+
abstract protected function voteOnAttribute(string $attribute, $subject, TokenInterface $token);
4949
}
5050

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

0 commit comments

Comments
 (0)