8000 minor #52602 [HttpClient] Revert "minor #52418 add native argument f… · symfony/symfony@48793f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48793f9

Browse files
committed
minor #52602 [HttpClient] Revert "minor #52418 add native argument for the test server working directory" (nicolas-grekas)
This PR was merged into the 7.0 branch. Discussion ---------- [HttpClient] Revert "minor #52418 add native argument for the test server working directory" | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT This reverts commit fa590af, reversing changes made to 907b683. I completly forgot that we don't want to release a new major for contracts so the code in 7.0 must be in sync with the one in 6.4. /cc `@xabbuh` Commits ------- 1b61e92 Revert "minor #52418 [HttpClient] add native argument for the test server working directory (xabbuh)"
2 parents e471ec5 + 1b61e92 commit 48793f9

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