@@ -66,7 +66,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
66
66
* If all voters abstained from voting, the decision will be based on the
67
67
* allowIfAllAbstainDecisions property value (defaults to false).
68
68
*/
69
- private function decideAffirmative (TokenInterface $ token , array $ attributes , $ object = null )
69
+ private function decideAffirmative (TokenInterface $ token , array $ attributes , $ object = null ): bool
70
70
{
71
71
$ deny = 0 ;
72
72
foreach ($ this ->voters as $ voter ) {
@@ -106,7 +106,7 @@ private function decideAffirmative(TokenInterface $token, array $attributes, $ob
106
106
* If all voters abstained from voting, the decision will be based on the
107
107
* allowIfAllAbstainDecisions property value (defaults to false).
108
108
*/
109
- private function decideConsensus (TokenInterface $ token , array $ attributes , $ object = null )
109
+ private function decideConsensus (TokenInterface $ token , array $ attributes , $ object = null ): bool
110
110
{
111
111
$ grant = 0 ;
112
112
$ deny = 0 ;
@@ -147,7 +147,7 @@ private function decideConsensus(TokenInterface $token, array $attributes, $obje
147
147
* If all voters abstained from voting, the decision will be based on the
148
148
* allowIfAllAbstainDecisions property value (defaults to false).
149
149
*/
150
- private function decideUnanimous (TokenInterface $ token , array $ attributes , $ object = null )
150
+ private function decideUnanimous (TokenInterface $ token , array $ attributes , $ object = null ): bool
151
151
{
152
152
$ grant = 0 ;
153
153
foreach ($ this ->voters as $ voter ) {
0 commit comments