Skip to content

Commit bf58846

Browse files
[7.0] Fix various @psalm-return annotations
1 parent 78478b0 commit bf58846

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Authorization/Voter/VoterInterface.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +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
37-
*
38-
* @psalm-return self::ACCESS_* must be transformed into @return on Symfony 7
36+
* @return self::ACCESS_*
3937
*/
40-
public function vote(TokenInterface $token, mixed $subject, array $attributes);
38+
public function vote(TokenInterface $token, mixed $subject, array $attributes): int;
4139
}

0 commit comments

Comments
 (0)