Skip to content

Commit fa590af

Browse files
minor symfony#52418 [HttpClient] add native argument for the test server working directory (xabbuh)
This PR was merged into the 7.0 branch. Discussion ---------- [HttpClient] 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 Commits ------- b9b5a62 add native argument for the test server working directory
2 parents 907b683 + b9b5a62 commit fa590af

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)