From f7c5ddc02870aa4ebc81022e4bd2533e42fd3079 Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Tue, 17 Sep 2024 17:19:31 -0500 Subject: [PATCH] Fix issue with RedisCluster and empty tlsOptions array. --- ClusterClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClusterClient.php b/ClusterClient.php index 1e06881..3b801ae 100644 --- a/ClusterClient.php +++ b/ClusterClient.php @@ -95,7 +95,7 @@ public function connect() $this->readTimeout, $this->persistentBool, // Note: This can't be $this->persistent, because it is string ['user' => $this->authUsername, 'pass' => $this->authPassword], - $this->tlsOptions, + empty($this->tlsOptions) ? null : $this->tlsOptions, ); $this->connectFailures = 0; $this->connected = true;