diff --git a/src/Traits/HasHttpRequests.php b/src/Traits/HasHttpRequests.php index 8d44a3b..015c8c9 100644 --- a/src/Traits/HasHttpRequests.php +++ b/src/Traits/HasHttpRequests.php @@ -90,9 +90,9 @@ public function getHttpClient(): ClientInterface * @param array $options * @param bool $async * - * @return \Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|\GuzzleHttp\Promise\Promise */ - public function request($uri, $method = 'GET', $options = [], bool $async = false): ResponseInterface + public function request($uri, $method = 'GET', $options = [], bool $async = false) { return $this->getHttpClient()->{ $async ? 'requestAsync' : 'request' }(strtoupper($method), $uri, array_merge(self::$defaults, $options)); }