From ae3a1cd32b5e81b88c3cefa8952dc15e772ede25 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 4 Jun 2019 12:38:27 +0200 Subject: [PATCH] [HttpClient] don't break BC badly --- src/Symfony/Contracts/HttpClient/ResponseInterface.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Contracts/HttpClient/ResponseInterface.php b/src/Symfony/Contracts/HttpClient/ResponseInterface.php index a7e01be84c28f..8091b14e44102 100644 --- a/src/Symfony/Contracts/HttpClient/ResponseInterface.php +++ b/src/Symfony/Contracts/HttpClient/ResponseInterface.php @@ -22,6 +22,8 @@ * * @author Nicolas Grekas * + * @method void cancel() + * * @experimental in 1.1 */ interface ResponseInterface @@ -71,11 +73,6 @@ public function getContent(bool $throw = true): string; */ public function toArray(bool $throw = true): array; - /** - * Cancels the response. - */ - public function cancel(): void; - /** * Returns info coming from the transport layer. *