Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -28,6 +28,9 @@ public static function canAccess(): bool
return auth()->user()?->can('viewAny', User::class) ?? false;
}
/**
* @return array<int, array<int, class-string>>
*/
public function getWidgets(): array
{
return [
@ -48,7 +51,7 @@ protected function getHeaderActions(): array
return $user;
})
->form(function (Form $form) {
->form(function (Form $form): \Filament\Forms\Form {
$rules = CreateUser::rules();
return $form
@ -61,7 +64,7 @@ protected function getHeaderActions(): array
->rules($rules['password']),
Select::make('role')
->rules($rules['role'])
->options(collect(config('core.user_roles'))->mapWithKeys(fn ($role) => [$role => $role])),
->options(collect((array) config('core.user_roles'))->mapWithKeys(fn ($role) => [$role => $role])),
])
->columns(1);
})