diff --git a/src/RunServerListener.php b/src/RunServerListener.php index 5a3c144..977ffb7 100644 --- a/src/RunServerListener.php +++ b/src/RunServerListener.php @@ -83,14 +83,14 @@ public function start(): void $cmd = 'php -S ' . self::$host .':' . self::$port . ' -t ' . $script; - if ($this->workers > 0) { - $cmd = 'PHP_CLI_SERVER_WORKERS=' . $this->workers . ' ' . $cmd; - } - if ($this->runAs && get_current_user() !== $this->runAs) { $cmd = 'runuser -u ' . $this->runAs . ' -- ' . $cmd; } + if ($this->workers > 0) { + $cmd = 'PHP_CLI_SERVER_WORKERS=' . $this->workers . ' ' . $cmd; + } + if (is_numeric($this->verbose)) { $verbose = ''; } else {