From ba2c7c67df0af96e22e4a3f7577f7870af35d74d Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 8 Dec 2024 20:02:16 +0100 Subject: [PATCH] Inline variable --- packages/framework/src/Console/Commands/ServeCommand.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/framework/src/Console/Commands/ServeCommand.php b/packages/framework/src/Console/Commands/ServeCommand.php index f74c7560928..ac967da8d9f 100644 --- a/packages/framework/src/Console/Commands/ServeCommand.php +++ b/packages/framework/src/Console/Commands/ServeCommand.php @@ -62,13 +62,11 @@ public function safeHandle(): int $this->runViteProcess(); } - $command = sprintf('php -S %s:%d %s', + $this->runServerProcess(sprintf('php -S %s:%d %s', $this->getHostSelection(), $this->getPortSelection(), $this->getExecutablePath() - ); - - $this->runServerProcess($command); + )); $this->handleRunningProcesses();