From b3bf8a34578e4a4d361f33f7bd9b162705b6ac33 Mon Sep 17 00:00:00 2001 From: George Steel Date: Thu, 21 Nov 2024 21:37:28 +0000 Subject: [PATCH] Fix minor psalm issue Signed-off-by: George Steel --- src/Rbac.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rbac.php b/src/Rbac.php index bd632c5..643b3d7 100644 --- a/src/Rbac.php +++ b/src/Rbac.php @@ -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) {