From d49174bdafc7d17d7e17c2ec896481f7e81b4892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulises=20Mart=C3=ADnez?= Date: Tue, 10 Dec 2024 12:22:41 -0600 Subject: [PATCH 1/2] Update LaratrustUser.php --- src/Contracts/LaratrustUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Contracts/LaratrustUser.php b/src/Contracts/LaratrustUser.php index 8dee3818..946d0924 100644 --- a/src/Contracts/LaratrustUser.php +++ b/src/Contracts/LaratrustUser.php @@ -150,5 +150,5 @@ public function syncPermissions( * * @return Collection<\Laratrust\Contracts\Permission> */ - public function allPermissions(array $columns = null, $team = false): Collection; + public function allPermissions(?array $columns = null, $team = false): Collection; } From 909e7d32fb0901916c2e53ce958f8c65978a99bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulises=20Mart=C3=ADnez?= Date: Tue, 10 Dec 2024 12:23:15 -0600 Subject: [PATCH 2/2] Update HasRolesAndPermissions.php --- src/Traits/HasRolesAndPermissions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/HasRolesAndPermissions.php b/src/Traits/HasRolesAndPermissions.php index 6bb26f1c..d78e1237 100644 --- a/src/Traits/HasRolesAndPermissions.php +++ b/src/Traits/HasRolesAndPermissions.php @@ -498,7 +498,7 @@ public function syncPermissionsWithoutDetaching( * * @return Collection<\Laratrust\Contracts\Permission> */ - public function allPermissions(array $columns = null, $team = false): Collection + public function allPermissions(?array $columns = null, $team = false): Collection { $columns = is_array($columns) ? $columns : null; if ($columns) {