We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e471ec5 commit 1b61e92Copy full SHA for 1b61e92
src/Symfony/Contracts/HttpClient/Test/TestHttpServer.php
@@ -18,9 +18,12 @@ class TestHttpServer
18
{
19
private static array $process = [];
20
21
- public static function start(int $port = 8057, string $workingDirectory = null): Process
+ /**
22
+ * @param string|null $workingDirectory
23
+ */
24
+ public static function start(int $port = 8057/* , string $workingDirectory = null */): Process
25
- $workingDirectory ??= __DIR__.'/Fixtures/web';
26
+ $workingDirectory = \func_get_args()[1] ?? __DIR__.'/Fixtures/web';
27
28
if (isset(self::$process[$port])) {
29
self::$process[$port]->stop();
0 commit comments