From 2bc7c2797c6f2e2f21443821f363d30fa9d4e3ed Mon Sep 17 00:00:00 2001 From: Boy132 Date: Thu, 19 Sep 2024 09:25:46 +0200 Subject: [PATCH] fix phpstan 2.0 --- app/Filament/Resources/RoleResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Resources/RoleResource.php b/app/Filament/Resources/RoleResource.php index efe4ea418c..306c9676da 100644 --- a/app/Filament/Resources/RoleResource.php +++ b/app/Filament/Resources/RoleResource.php @@ -44,7 +44,7 @@ public static function form(Form $form): Form } if (array_key_exists($model->value, Role::MODEL_SPECIFIC_PERMISSIONS)) { - foreach (Role::MODEL_SPECIFIC_PERMISSIONS[$model] as $permission) { + foreach (Role::MODEL_SPECIFIC_PERMISSIONS[$model->value] as $permission) { $options[$permission . ' ' . strtolower($model->value)] = Str::headline($permission); } }