Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6808dc

Browse files
committed
[Security] Restrict vote() return type
1 parent 9fe25c2 commit b6808dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface VoterInterface
3333
* @param mixed $subject The subject to secure
3434
* @param array $attributes An array of attributes associated with the method being invoked
3535
*
36-
* @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
36+
* @return self::ACCESS_* either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
3737
*/
3838
public function vote(TokenInterface $token, mixed $subject, array $attributes);
3939
}

0 commit comments

Comments
 (0)