Make return types in HttpFactory more readable
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Jun 2021 11:44:46 +0000 (13:44 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Jun 2021 11:44:46 +0000 (13:44 +0200)
see f5b3800800e74296ca1411b25496a6b964c0600e
see #4337

wcfsetup/install/files/lib/system/io/HttpFactory.class.php

index 3e8ea2736dae9868831f88f31e8d7bfac4d61f58..c6a2fb951abf57419add5355e24fbc8de22160e1 100644 (file)
@@ -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
     {