8000 bug #58142 [HttpClient] fix supported `amphp/http-client` version det… · symfony/symfony@84f4837 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84f4837

Browse files
committed
bug #58142 [HttpClient] fix supported amphp/http-client version detection (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [HttpClient] fix supported `amphp/http-client` version detection | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- f72d8d7 fix supported amphp/http-client version detection
2 parents 1958d21 + f72d8d7 commit 84f4837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class HttpClient
3131
*/
3232
public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface
3333
{
34-
if ($amp = class_exists(AmpRequest::class) && (\PHP_VERSION_ID >= 80400 || is_subclass_of(AmpRequest::class, HttpMessage::class))) {
34+
if ($amp = class_exists(AmpRequest::class) && (\PHP_VERSION_ID >= 80400 || !is_subclass_of(AmpRequest::class, HttpMessage::class))) {
3535
if (!\extension_loaded('curl')) {
3636
return new AmpHttpClient($defaultOptions, null, $maxHostConnections, $maxPendingPushes);
3737
}

0 commit comments

Comments
 (0)
0