From 006d83b9c455127714663506df85e795897fc795 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 23 Jun 2021 13:44:46 +0200 Subject: [PATCH] Make return types in HttpFactory more readable see f5b3800800e74296ca1411b25496a6b964c0600e see #4337 --- wcfsetup/install/files/lib/system/io/HttpFactory.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/io/HttpFactory.class.php b/wcfsetup/install/files/lib/system/io/HttpFactory.class.php index 3e8ea2736d..c6a2fb951a 100644 --- a/wcfsetup/install/files/lib/system/io/HttpFactory.class.php +++ b/wcfsetup/install/files/lib/system/io/HttpFactory.class.php @@ -6,6 +6,7 @@ use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\RequestOptions; use InvalidArgumentException; +use Psr\Http\Client\ClientInterface as PsrClientInterface; use wcf\system\Regex; /** @@ -47,7 +48,7 @@ final class HttpFactory /** * Returns a reference to the default HTTP client. * - * @return Psr\Http\Client\ClientInterface & ClientInterface + * @return PsrClientInterface&ClientInterface */ public static function getDefaultClient(): ClientInterface { @@ -64,7 +65,7 @@ final class HttpFactory * * @since 5.4 * @see HttpFactory::makeClient() - * @return Psr\Http\Client\ClientInterface & ClientInterface + * @return PsrClientInterface&ClientInterface */ public static function makeClientWithTimeout(float $timeout): ClientInterface { @@ -80,7 +81,7 @@ final class HttpFactory * specifically removed by passing appropriate options. * * @see Client - * @return Psr\Http\Client\ClientInterface & ClientInterface + * @return PsrClientInterface&ClientInterface */ public static function makeClient(array $options = []): ClientInterface { -- 2.20.1