mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user