Skip to content

Commit

Permalink
fix phpstan 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Sep 19, 2024
1 parent ea66fc7 commit 2bc7c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Resources/RoleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 2bc7c27

Please sign in to comment.