diff --git a/src/HttpClientRouter.php b/src/HttpClientRouter.php index 971597b..84c7e04 100644 --- a/src/HttpClientRouter.php +++ b/src/HttpClientRouter.php @@ -6,7 +6,6 @@ use Http\Client\Common\Exception\HttpClientNoMatchException; use Http\Client\HttpAsyncClient; -use Http\Client\HttpClient; use Http\Message\RequestMatcher; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestInterface; @@ -43,7 +42,7 @@ public function sendAsyncRequest(RequestInterface $request) /** * Add a client to the router. * - * @param HttpClient|HttpAsyncClient $client + * @param ClientInterface|HttpAsyncClient $client */ public function addClient($client, RequestMatcher $requestMatcher): void { diff --git a/src/PluginClient.php b/src/PluginClient.php index a3a4023..8288445 100644 --- a/src/PluginClient.php +++ b/src/PluginClient.php @@ -73,7 +73,7 @@ public function __construct($client, array $plugins = [], array $options = []) public function sendRequest(RequestInterface $request): ResponseInterface { // If we don't have an http client, use the async call - if (!($this->client instanceof HttpClient)) { + if (!($this->client instanceof ClientInterface)) { return $this->sendAsyncRequest($request)->wait(); }