diff --git a/app/Filament/Resources/ServerResource/Pages/CreateServer.php b/app/Filament/Resources/ServerResource/Pages/CreateServer.php index 3568d478b3..d9b29ca7c9 100644 --- a/app/Filament/Resources/ServerResource/Pages/CreateServer.php +++ b/app/Filament/Resources/ServerResource/Pages/CreateServer.php @@ -813,7 +813,7 @@ public function resetEggVariables(Forms\Set $set, Forms\Get $get) $serverVariables = collect(); $this->ports = []; foreach ($variables as $variable) { - if (str_contains($variable->rules, 'port')) { + if (in_array('port', $variable->rules)) { $this->eggDefaultPorts[$variable->env_variable] = $variable->default_value; $this->ports[] = (int) $variable->default_value;