8000 acces is int not bool · symfony/symfony@278f259 · GitHub
[go: up one dir, main page]

Skip to content

Commit 278f259

Browse files
committed
acces is int not bool
1 parent ed7ef4d commit 278f259

File tree

1 file changed

+2
-2
lines changed
  • src/Symfony/Component/Security/Core/Authorization/Voter

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getAccess(): int
6060

6161
public function isGranted 9DB7 (): bool
6262
{
63-
return true === $this->access || $this->access > 0;
63+
return $this->access > 0;
6464
}
6565

6666
public function isAbstain(): bool
@@ -70,7 +70,7 @@ public function isAbstain(): bool
7070

7171
public function isDenied(): bool
7272
{
73-
return false === $this->access || $this->access < 0;
73+
return $this->access < 0;
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)
0