Skip to content

Commit

Permalink
Merge branch 'develop' into multilevel-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeneto authored Nov 11, 2024
2 parents fe3215f + d7f42f9 commit fa1e256
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Entities/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public function can(string $permission): bool
return $this->permissions !== null &&

Check failure on line 95 in src/Entities/Group.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.2 Static Analysis

Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.

Check failure on line 95 in src/Entities/Group.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.0 Static Analysis

Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.

Check failure on line 95 in src/Entities/Group.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.3 Static Analysis

Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.

Check failure on line 95 in src/Entities/Group.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 7.4 Static Analysis

Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.

Check failure on line 95 in src/Entities/Group.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.1 Static Analysis

Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.
$this->permissions !== [] &&
array_intersect($checks, $this->permissions);

}

/**
Expand Down

0 comments on commit fa1e256

Please sign in to comment.