From 2bcb405ddc9ed69355513de5f2396dc658fd004d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 4 Jun 2019 17:03:18 -0500 Subject: [PATCH] fix cluster connecting --- src/Illuminate/Redis/RedisManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Redis/RedisManager.php b/src/Illuminate/Redis/RedisManager.php index 4ee5d57983ef..8bede93e1f4b 100644 --- a/src/Illuminate/Redis/RedisManager.php +++ b/src/Illuminate/Redis/RedisManager.php @@ -118,7 +118,9 @@ public function resolve($name = null) protected function resolveCluster($name) { return $this->connector()->connectToCluster( - $this->parseConnectionConfiguration($this->config['clusters'][$name]), + array_map(function ($config) { + return $this->parseConnectionConfiguration($config); + }, $this->config['clusters'][$name]), $this->config['clusters']['options'] ?? [], $this->config['options'] ?? [] );