diff --git a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php index 8875c852a14a..bc6e63f927df 100644 --- a/src/Illuminate/Redis/Connectors/PhpRedisConnector.php +++ b/src/Illuminate/Redis/Connectors/PhpRedisConnector.php @@ -196,7 +196,7 @@ protected function createRedisClusterInstance(array $servers, array $options) } if (! empty($options['failover'])) { - $client->setOption(Redis::OPT_SLAVE_FAILOVER, $options['failover']); + $client->setOption(RedisCluster::OPT_SLAVE_FAILOVER, $options['failover']); } if (! empty($options['name'])) {