8000 Revert "minor #52418 [HttpClient] add native argument for the test se… · symfony/symfony@1b61e92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b61e92

Browse files
Revert "minor #52418 [HttpClient] add native argument for the test server working directory (xabbuh)"
This reverts commit fa590af, reversing changes made to 907b683.
1 parent e471ec5 commit 1b61e92

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

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

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

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

0 commit comments

Comments
 (0)
0