mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
fix enums
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
namespace App\Web\Pages\Servers\PHP;
|
||||
|
||||
use App\Actions\PHP\InstallNewPHP;
|
||||
use App\Enums\PHP;
|
||||
use App\Models\Service;
|
||||
use App\Web\Pages\Servers\Page;
|
||||
use App\Web\Pages\Servers\PHP\Widgets\PHPList;
|
||||
@ -43,7 +44,7 @@ protected function getHeaderActions(): array
|
||||
Select::make('version')
|
||||
->options(
|
||||
collect(config('core.php_versions'))
|
||||
->filter(fn ($version) => ! in_array($version, $installedPHPs))
|
||||
->filter(fn ($version) => ! in_array($version, array_merge($installedPHPs, [PHP::NONE])))
|
||||
->mapWithKeys(fn ($version) => [$version => $version])
|
||||
->toArray()
|
||||
)
|
||||
|
Reference in New Issue
Block a user