Skip to content

Commit a1549f2

Browse files
committed
use Predis\ClientInterface instead of Predis\Client
1 parent 3d75949 commit a1549f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Qandidate/Toggle/ToggleCollection/PredisCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace Qandidate\Toggle\ToggleCollection;
1515

16-
use Predis\Client;
16+
use Predis\ClientInterface;
1717
use Qandidate\Toggle\Toggle;
1818
use Qandidate\Toggle\ToggleCollection;
1919

@@ -23,7 +23,7 @@
2323
class PredisCollection extends ToggleCollection
2424
{
2525
/**
26-
* @var Client
26+
* @var ClientInterface
2727
*/
2828
private $client;
2929

@@ -32,13 +32,13 @@ class PredisCollection extends ToggleCollection
3232
*/
3333
private $namespace;
3434

35-
public function __construct(string $namespace, Client $client)
35+
public function __construct(string $namespace, ClientInterface $client)
3636
{
3737
$this->namespace = $namespace;
3838
$this->client = $client;
3939
}
4040

41-
public function getClient(): Client
41+
public function getClient(): ClientInterface
4242
{
4343
return $this->client;
4444
}

0 commit comments

Comments
 (0)