From a1549f2efe4ad6824c6547d335d2d45e8004e041 Mon Sep 17 00:00:00 2001 From: othillo Date: Fri, 29 Jul 2022 14:57:40 +0200 Subject: [PATCH] use Predis\ClientInterface instead of Predis\Client --- .../Toggle/ToggleCollection/PredisCollection.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php b/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php index b4333d4..ed2b570 100644 --- a/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php +++ b/lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php @@ -13,7 +13,7 @@ namespace Qandidate\Toggle\ToggleCollection; -use Predis\Client; +use Predis\ClientInterface; use Qandidate\Toggle\Toggle; use Qandidate\Toggle\ToggleCollection; @@ -23,7 +23,7 @@ class PredisCollection extends ToggleCollection { /** - * @var Client + * @var ClientInterface */ private $client; @@ -32,13 +32,13 @@ class PredisCollection extends ToggleCollection */ private $namespace; - public function __construct(string $namespace, Client $client) + public function __construct(string $namespace, ClientInterface $client) { $this->namespace = $namespace; $this->client = $client; } - public function getClient(): Client + public function getClient(): ClientInterface { return $this->client; }