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

@ -10,6 +10,9 @@
class Edit
{
/**
* @return array<int, mixed>
*/
public static function form(): array
{
return [
@ -20,8 +23,13 @@ public static function form(): array
];
}
/**
* @param array<string, mixed> $data
*/
public static function action(NotificationChannel $channel, array $data): void
{
app(EditChannel::class)->edit($channel, auth()->user(), $data);
/** @var \App\Models\User $user */
$user = auth()->user();
app(EditChannel::class)->edit($channel, $user, $data);
}
}