Skip to content

Commit c3cdde7

Browse files
committedJan 21, 2019
Make sure we check for PSR client
1 parent 4edc75b commit c3cdde7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/HttpClientRouter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function sendAsyncRequest(RequestInterface $request)
4343
/**
4444
* Add a client to the router.
4545
*
46-
* @param HttpClient|HttpAsyncClient $client
46+
* @param ClientInterface|HttpAsyncClient $client
4747
*/
4848
public function addClient($client, RequestMatcher $requestMatcher): void
4949
{

‎src/PluginClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct($client, array $plugins = [], array $options = [])
7373
public function sendRequest(RequestInterface $request): ResponseInterface
7474
{
7575
// If we don't have an http client, use the async call
76-
if (!($this->client instanceof HttpClient)) {
76+
if (!($this->client instanceof ClientInterface)) {
7777
return $this->sendAsyncRequest($request)->wait();
7878
}
7979

0 commit comments

Comments
 (0)
Please sign in to comment.