Skip to content

Commit a60b236

Browse files
Pierstovaldunglas
authored andcommitted
Fixed command-line that was not retrieving all arguments properly
1 parent 15723b5 commit a60b236

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ProcessManager/WebServerManager.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ public function __construct(string $documentRoot, string $hostname, int $port)
4444
throw new \RuntimeException('Unable to find the PHP binary.');
4545
}
4646

47-
$this->process = new Process([$binary] + $finder->findArguments() + ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)], $documentRoot, null, null, null);
47+
$this->process = new Process(
48+
\array_merge([$binary], $finder->findArguments(), ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)]),
49+
$documentRoot,
50+
null,
51+
null,
52+
null
53+
);
4854
}
4955

5056
public function start(): void

0 commit comments

Comments
 (0)