From f9a4e1e4e028ad6c07ff3a7f4fff01ff291e803f Mon Sep 17 00:00:00 2001 From: Matt Inamdar Date: Mon, 3 Jun 2019 12:18:42 +0100 Subject: [PATCH] Using ClusterInterface instead of PredisCluster --- src/Illuminate/Redis/Connections/PredisConnection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Redis/Connections/PredisConnection.php b/src/Illuminate/Redis/Connections/PredisConnection.php index 7804a74f9b43..9129f2d43349 100644 --- a/src/Illuminate/Redis/Connections/PredisConnection.php +++ b/src/Illuminate/Redis/Connections/PredisConnection.php @@ -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; /** @@ -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'); }