Skip to content

Commit 0abd64b

Browse files
bug #33045 Make HttpClientTestCase compatible with PHPUnit8 (jderusse)
This PR was merged into the 4.3 branch. Discussion ---------- Make HttpClientTestCase compatible with PHPUnit8 | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32844 | License | MIT | Doc PR | NA the abstract class `HttpClientTestCase` may be extends by end user and execute by both PHPUnit 8 and bellow. Adding a return typehint on it will force all users extending it to add it too and would be a BC Break. Note. I don't know how to trigger a deprecation here and help user to add it. Commits ------- 55daf15 Fix compatibility with PHPUnit 8
2 parents c0f416e + 55daf15 commit 0abd64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class HttpClientTestCase extends TestCase
2626
{
2727
private static $server;
2828

29-
public static function setUpBeforeClass()
29+
public static function setUpBeforeClass(): void
3030
{
3131
TestHttpServer::start();
3232
}

0 commit comments

Comments
 (0)