Skip to content

Commit

Permalink
use Predis\ClientInterface instead of Predis\Client
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Jul 29, 2022
1 parent 3d75949 commit a1549f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Qandidate\Toggle\ToggleCollection;

use Predis\Client;
use Predis\ClientInterface;
use Qandidate\Toggle\Toggle;
use Qandidate\Toggle\ToggleCollection;

Expand All @@ -23,7 +23,7 @@
class PredisCollection extends ToggleCollection
{
/**
* @var Client
* @var ClientInterface
*/
private $client;

Expand All @@ -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;
}
Expand Down

0 comments on commit a1549f2

Please sign in to comment.