Skip to content

Commit 9a88524

Browse files
committed
minor #13845 Update voters.rst (atailouloute)
This PR was merged into the 5.0 branch. Discussion ---------- Update voters.rst Added missing typehints Commits ------- f4e9d00 Update voters.rst
2 parents 30a896a + f4e9d00 commit 9a88524

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)