diff --git a/src/Symfony/Component/HttpClient/AmpHttpClient.php b/src/Symfony/Component/HttpClient/AmpHttpClient.php index 7df0ee6fff4dc..13c532042d3aa 100644 --- a/src/Symfony/Component/HttpClient/AmpHttpClient.php +++ b/src/Symfony/Component/HttpClient/AmpHttpClient.php @@ -159,7 +159,7 @@ public function reset(): void foreach ($this->multi->pushedResponses as $pushedResponses) { foreach ($pushedResponses as [$pushedUrl, $pushDeferred]) { - $pushDeferred->fail(new CancelledException()); + $pushDeferred->error(new CancelledException()); $this->logger?->debug(\sprintf('Unused pushed response: "%s"', $pushedUrl)); } diff --git a/src/Symfony/Component/HttpClient/composer.json b/src/Symfony/Component/HttpClient/composer.json index 3d682a2b75a94..16a3219d8fce0 100644 --- a/src/Symfony/Component/HttpClient/composer.json +++ b/src/Symfony/Component/HttpClient/composer.json @@ -28,7 +28,7 @@ "symfony/service-contracts": "^2.5|^3" }, "require-dev": { - "amphp/http-client": "^5.0", + "amphp/http-client": "^5.3.2", "amphp/http-tunnel": "^2.0", "guzzlehttp/promises": "^1.4|^2.0", "nyholm/psr7": "^1.0",