From 7e344e2614f9fdc473cdc15be908e597b853bd6f Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 21 May 2021 09:32:28 +0200 Subject: [PATCH] Fix return Issue : #24 --- src/Transport/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Transport/Client.php b/src/Transport/Client.php index 27218f2..ff12d5c 100644 --- a/src/Transport/Client.php +++ b/src/Transport/Client.php @@ -12,6 +12,7 @@ use Http\Client\Socket\Client as SocketHttpClient; use Http\Message\MessageFactory\GuzzleMessageFactory; use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use Smalot\Cups\CupsException; /** @@ -116,7 +117,7 @@ public function setAuthType($authType) /** * (@inheritdoc} */ - public function sendRequest(RequestInterface $request) + public function sendRequest(RequestInterface $request): ResponseInterface { if ($this->username || $this->password) { switch ($this->authType) {