Skip to content

Commit

Permalink
Fix: level validation - invalid logical operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Smusz committed Mar 16, 2020
1 parent 8b3c0e3 commit aebdfa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ private function checkScopeAndLevel(string $scope, int $level): void
{
$this->checkScope($scope);

if ($level < 0 && $level > 4) {
if ($level < 0 || $level > 4) {
throw new InvalidArgumentException('Given [level] must be in range of 0-4.');
}
}
Expand Down

0 comments on commit aebdfa5

Please sign in to comment.