mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -40,6 +40,9 @@ public function getWidgets(): array
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
/** @var \App\Models\User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
return [
|
||||
Action::make('read-the-docs')
|
||||
->label('Read the Docs')
|
||||
@ -62,9 +65,9 @@ protected function getHeaderActions(): array
|
||||
->label('Is Global (Accessible in all projects)'),
|
||||
])
|
||||
->modalSubmitActionLabel('Create')
|
||||
->action(function (array $data) {
|
||||
run_action($this, function () use ($data) {
|
||||
app(CreateScript::class)->create(auth()->user(), $data);
|
||||
->action(function (array $data) use ($user): void {
|
||||
run_action($this, function () use ($data, $user): void {
|
||||
app(CreateScript::class)->create($user, $data);
|
||||
|
||||
$this->dispatch('$refresh');
|
||||
});
|
||||
|
Reference in New Issue
Block a user