Skip to content

Commit

Permalink
OP-334: Deprecated client fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GracjanJozefczyk committed Jun 25, 2024
1 parent b093c09 commit 750b786
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Bridge/Przelewy24Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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(
Expand Down

0 comments on commit 750b786

Please sign in to comment.