From e0ee539728eeb4f51c6515d395f4ae0ae6b87266 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Wed, 7 Dec 2022 22:52:01 +0100 Subject: [PATCH] fix php73 compatibility --- src/Gateway.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index ed8c7fb..4e51734 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -10,17 +10,21 @@ class Gateway { - private string $apiKey; - - private RequestFactoryInterface $requestFactory; - private StreamFactoryInterface $streamFactory; - private ClientInterface $httpClient; - private bool $productionMode; + /** @var string */ + private $apiKey; + /** @var \Psr\Http\Message\RequestFactoryInterface */ + private $requestFactory; + /** @var \Psr\Http\Message\StreamFactoryInterface */ + private $streamFactory; + /** @var \Psr\Http\Client\ClientInterface */ + private $httpClient; + /** @var bool */ + private $productionMode; public function __construct( RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, - ClientInterface $httpClient, + ClientInterface $httpClient ) { $this->requestFactory = $requestFactory;