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

Skip to content

Commit 46b15e0

Browse files
committed
acces is int not bool
1 parent 71d7744 commit 46b15e0

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

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

6161
public function isGranted(): 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