From 1e6d90325f58695cc6f1a72f6f0bd9f4881d4965 Mon Sep 17 00:00:00 2001 From: Krzysztof Jankowski <72562086+kjank8@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:00:41 +0200 Subject: [PATCH] Change the settHttpClient argument type to ClientInterface (#4) --- src/ApiClient/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiClient/Client.php b/src/ApiClient/Client.php index b041bb1..812b000 100644 --- a/src/ApiClient/Client.php +++ b/src/ApiClient/Client.php @@ -2,7 +2,7 @@ namespace Bokbasen\ApiClient; -use Http\Client\HttpClient; +use Psr\Http\Client\ClientInterface; use Psr\Http\Message\ResponseInterface; use Bokbasen\Auth\Login; use Psr\Http\Message\StreamInterface; @@ -70,7 +70,7 @@ protected function getCaller(): Caller return $this->caller; } - public function setHttpClient(HttpClient $httpClient): void + public function setHttpClient(ClientInterface $httpClient): void { $this->getCaller()->setHttpClient($httpClient); }