Skip to content

Commit

Permalink
Merge pull request #28706 from matthew-inamdar/5.8
Browse files Browse the repository at this point in the history
[5.8] Use ClusterInterface instead of PredisCluster
  • Loading branch information
taylorotwell authored Jun 3, 2019
2 parents 01527f9 + f9a4e1e commit 7db4308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Redis/Connections/PredisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Closure;
use Predis\Command\ServerFlushDatabase;
use Predis\Connection\Aggregate\PredisCluster;
use Predis\Connection\Aggregate\ClusterInterface;
use Illuminate\Contracts\Redis\Connection as ConnectionContract;

/**
Expand Down Expand Up @@ -53,7 +53,7 @@ public function createSubscription($channels, Closure $callback, $method = 'subs
*/
public function flushdb()
{
if (! $this->client->getConnection() instanceof PredisCluster) {
if (! $this->client->getConnection() instanceof ClusterInterface) {
return $this->command('flushdb');
}

Expand Down

0 comments on commit 7db4308

Please sign in to comment.