Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Jun 5, 2020
1 parent 5bed78c commit 4142982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/HasHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 4142982

Please sign in to comment.