8000 [Security] update Voter return type · githubfromgui/symfony-docs@f8dd322 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f8dd322

Browse files
mohamedGasmiixabbuh
authored andcommitted
[Security] update Voter return type
1 parent 5cc1339 commit f8dd322

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

5757
abstract class Voter implements VoterInterface
5858
{
59-
abstract protected function supports($attribute, $subject);
60-
abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token);
59+
abstract protected function supports($attribute, $subject): bool;
60+
abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool;
6161
}
6262

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

0 commit comments

Comments
 (0)
0