| @@ -15,12 +15,12 @@ | ||
| 15 | 15 | /** |
| 16 | 16 | * Sends synchronous requests to a specific handler while sending all other |
| 17 | 17 | * requests to another handler. |
| 18 | 18 | * |
| 19 | - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $default Handler used for normal responses | |
| 20 | - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $sync Handler used for synchronous responses. | |
| 19 | + * @param callable(RequestInterface, array): PromiseInterface $default Handler used for normal responses | |
| 20 | + * @param callable(RequestInterface, array): PromiseInterface $sync Handler used for synchronous responses. | |
| 21 | 21 | * |
| 22 | - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler. | |
| 22 | + * @return callable(RequestInterface, array): PromiseInterface Returns the composed handler. | |
| 23 | 23 | */ |
| 24 | 24 | public static function wrapSync(callable $default, callable $sync) : callable |
| 25 | 25 | { |
| 26 | 26 | return static function (RequestInterface $request, array $options) use($default, $sync) : PromiseInterface { |
| @@ -34,12 +34,12 @@ | ||
| 34 | 34 | * This, for example, could be useful for taking advantage of the |
| 35 | 35 | * performance benefits of curl while still supporting true streaming |
| 36 | 36 | * through the StreamHandler. |
| 37 | 37 | * |
| 38 | - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $default Handler used for non-streaming responses | |
| 39 | - * @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $streaming Handler used for streaming responses | |
| 38 | + * @param callable(RequestInterface, array): PromiseInterface $default Handler used for non-streaming responses | |
| 39 | + * @param callable(RequestInterface, array): PromiseInterface $streaming Handler used for streaming responses | |
| 40 | 40 | * |
| 41 | - * @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the composed handler. | |
| 41 | + * @return callable(RequestInterface, array): PromiseInterface Returns the composed handler. | |
| 42 | 42 | */ |
| 43 | 43 | public static function wrapStreaming(callable $default, callable $streaming) : callable |
| 44 | 44 | { |
| 45 | 45 | return static function (RequestInterface $request, array $options) use($default, $streaming) : PromiseInterface { |