diff --git a/src/DuskServer.php b/src/DuskServer.php index 6f96c2cc..6c7e5cc8 100644 --- a/src/DuskServer.php +++ b/src/DuskServer.php @@ -184,7 +184,7 @@ protected function prepareCommand(): string { return sprintf( (($this->isWindows() ? '' : 'exec ').'%s -S %s:%s %s'), - (new PhpExecutableFinder())->find(false), + '"'.(new PhpExecutableFinder())->find(false).'"', $this->host, $this->port, '"'.__DIR__.'/server.php'.'"'