Skip to content

Commit 32949b5

Browse files
committed
minor #17210 [Security] update Voter return type (mohamedGasmii)
This PR was submitted for the 6.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Security] update Voter return type <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- f8dd322 [Security] update Voter return type
2 parents 5cc1339 + f8dd322 commit 32949b5

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)