mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -43,15 +43,15 @@ protected function getHeaderActions(): array
|
||||
->form([
|
||||
Select::make('version')
|
||||
->options(
|
||||
collect(config('core.nodejs_versions'))
|
||||
->filter(fn ($version) => ! in_array($version, array_merge($installedNodeVersions, [NodeJS::NONE])))
|
||||
collect((array) config('core.nodejs_versions'))
|
||||
->filter(fn ($version): bool => ! in_array($version, array_merge($installedNodeVersions, [NodeJS::NONE])))
|
||||
->mapWithKeys(fn ($version) => [$version => $version])
|
||||
->toArray()
|
||||
)
|
||||
->rules(InstallNewNodeJsVersion::rules($this->server)['version']),
|
||||
])
|
||||
->modalSubmitActionLabel('Install')
|
||||
->action(function (array $data) {
|
||||
->action(function (array $data): void {
|
||||
app(InstallNewNodeJsVersion::class)->install($this->server, $data);
|
||||
|
||||
Notification::make()
|
||||
|
Reference in New Issue
Block a user