Skip to content

Commit

Permalink
Fix minor psalm issue
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Nov 21, 2024
1 parent 1d23526 commit b3bf8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rbac.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function addRole($role, $parents = null): void
);
}

if ($parents) {
if ($parents !== null) {
$parents = is_array($parents) ? $parents : [$parents];
/** @var RoleInterface|string $parent */
foreach ($parents as $parent) {
Expand Down

0 comments on commit b3bf8a3

Please sign in to comment.