From e9733a232248560d612cb8e47a9a6e934a9f9305 Mon Sep 17 00:00:00 2001 From: Ruslan Demyanovsky Date: Thu, 31 Aug 2023 13:52:40 +0200 Subject: [PATCH] chore: Add ClientInterface return typehint for php-http/httplug >= 2.4 --- src/ClientFactory/ClientFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ClientFactory/ClientFactory.php b/src/ClientFactory/ClientFactory.php index afae4b7f..2d61af2f 100644 --- a/src/ClientFactory/ClientFactory.php +++ b/src/ClientFactory/ClientFactory.php @@ -5,6 +5,7 @@ namespace Http\HttplugBundle\ClientFactory; use Http\Client\HttpClient; +use Psr\Http\Client\ClientInterface; /** * @author Tobias Nyholm @@ -14,7 +15,7 @@ interface ClientFactory /** * Input an array of configuration to be able to create a HttpClient. * - * @return HttpClient + * @return HttpClient|ClientInterface */ public function createClient(array $config = []); }