Skip to content

Commit a2db48e

Browse files
committed
Add types to private and final methods.
1 parent 3f59f01 commit a2db48e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Authorization/AccessDecisionManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
6666
* If all voters abstained from voting, the decision will be based on the
6767
* allowIfAllAbstainDecisions property value (defaults to false).
6868
*/
69-
private function decideAffirmative(TokenInterface $token, array $attributes, $object = null)
69+
private function decideAffirmative(TokenInterface $token, array $attributes, $object = null): bool
7070
{
7171
$deny = 0;
7272
foreach ($this->voters as $voter) {
@@ -106,7 +106,7 @@ private function decideAffirmative(TokenInterface $token, array $attributes, $ob
106106
* If all voters abstained from voting, the decision will be based on the
107107
* allowIfAllAbstainDecisions property value (defaults to false).
108108
*/
109-
private function decideConsensus(TokenInterface $token, array $attributes, $object = null)
109+
private function decideConsensus(TokenInterface $token, array $attributes, $object = null): bool
110110
{
111111
$grant = 0;
112112
$deny = 0;
@@ -147,7 +147,7 @@ private function decideConsensus(TokenInterface $token, array $attributes, $obje
147147
* If all voters abstained from voting, the decision will be based on the
148148
* allowIfAllAbstainDecisions property value (defaults to false).
149149
*/
150-
private function decideUnanimous(TokenInterface $token, array $attributes, $object = null)
150+
private function decideUnanimous(TokenInterface $token, array $attributes, $object = null): bool
151151
{
152152
$grant = 0;
153153
foreach ($this->voters as $voter) {

0 commit comments

Comments
 (0)