From 2002263c620f586ebcb9ccc8a9fe7a4a41cafda7 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 17 Jul 2024 17:56:47 +0200 Subject: [PATCH] Revert "Add string cast for constant" This reverts commit 7b15b31b976aa45442a17d1443d5b921f1429a21. --- packages/framework/src/Console/Commands/ServeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", '/');