Skip to content

Commit fa590af

Browse files
minor #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy