Skip to content

Commit b9b5a62

Browse files
committed
add native argument for the test server working directory
1 parent 907b683 commit b9b5a62

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Symfony/Contracts/HttpClient/Test/TestHttpServer.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ class TestHttpServer
1818
{
1919
private static array $process = [];
2020

21-
/**
22-
* @param string|null $workingDirectory
23-
*/
24-
public static function start(int $port = 8057/* , string $workingDirectory = null */): Process
21+
public static function start(int $port = 8057, string $workingDirectory = null): Process
2522
{
26-
$workingDirectory = \func_get_args()[1] ?? __DIR__.'/Fixtures/web';
23+
$workingDirectory ??= __DIR__.'/Fixtures/web';
2724

2825
if (isset(self::$process[$port])) {
2926
self::$process[$port]->stop();

0 commit comments

Comments
 (0)