From 750b786656e62675554063d9f16b6db0b698db83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gracjan=20J=C3=B3zefczyk?= Date: Tue, 25 Jun 2024 10:59:57 +0200 Subject: [PATCH] OP-334: Deprecated client fix --- src/Bridge/Przelewy24Bridge.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Bridge/Przelewy24Bridge.php b/src/Bridge/Przelewy24Bridge.php index 352c3ab..5ef2413 100644 --- a/src/Bridge/Przelewy24Bridge.php +++ b/src/Bridge/Przelewy24Bridge.php @@ -10,7 +10,8 @@ namespace BitBag\SyliusPrzelewy24Plugin\Bridge; -use GuzzleHttp\ClientInterface; +use GuzzleHttp\ClientInterface as DeprecatedClientInterface; +use Psr\Http\Client\ClientInterface; final class Przelewy24Bridge implements Przelewy24BridgeInterface { @@ -20,11 +21,9 @@ final class Przelewy24Bridge implements Przelewy24BridgeInterface private string $environment = self::SANDBOX_ENVIRONMENT; - private ClientInterface $client; - - public function __construct(ClientInterface $client) - { - $this->client = $client; + public function __construct( + private ClientInterface|DeprecatedClientInterface $client, + ) { } public function setAuthorizationData(