From 25834d3a65a76b37a948abe36e0e0c6c6ec7645b Mon Sep 17 00:00:00 2001 From: Bernhard Enders Date: Wed, 13 Nov 2024 18:50:54 -0300 Subject: [PATCH] Update Group.php added !empty() so it returns bool and passes phpstan --- src/Entities/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Group.php b/src/Entities/Group.php index 50fd6c162..c9ed0c4cf 100644 --- a/src/Entities/Group.php +++ b/src/Entities/Group.php @@ -95,7 +95,7 @@ public function can(string $permission): bool return $this->permissions !== null && $this->permissions !== [] - && array_intersect($checks, $this->permissions); + && !empty(array_intersect($checks, $this->permissions)); } /**