diff --git a/packages/framework/src/Console/Commands/ServeCommand.php b/packages/framework/src/Console/Commands/ServeCommand.php index f79a50d495b..86008ee805e 100644 --- a/packages/framework/src/Console/Commands/ServeCommand.php +++ b/packages/framework/src/Console/Commands/ServeCommand.php @@ -146,7 +146,7 @@ protected function checkArgvForOption(string $name): ?string protected function openInBrowser(string $path = '/'): void { - $binary = $this->getOpenCommand((string) PHP_OS_FAMILY); + $binary = $this->getOpenCommand(PHP_OS_FAMILY); $command = sprintf('%s http://%s:%d', $binary, $this->getHostSelection(), $this->getPortSelection()); $command = rtrim("$command/$path", '/');