From bdb50542ed5a88bdf24419b1fc70f56cc3313c2c Mon Sep 17 00:00:00 2001 From: Absorbing Date: Fri, 9 Feb 2024 17:55:20 +0000 Subject: [PATCH] Passing null to connect is deprecated as of PHP 8.1 --- pkg/redis/PhpRedis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/redis/PhpRedis.php b/pkg/redis/PhpRedis.php index d6f5baffa..d161bd470 100644 --- a/pkg/redis/PhpRedis.php +++ b/pkg/redis/PhpRedis.php @@ -115,8 +115,8 @@ public function connect(): void $this->config['port'], $this->config['timeout'], $this->config['persistent'] ? ($this->config['phpredis_persistent_id'] ?? null) : null, - $this->config['phpredis_retry_interval'] ?? null, - $this->config['read_write_timeout'] + $this->config['phpredis_retry_interval'] ?? 0, + $this->config['read_write_timeout'] ?? 0 ); if (false == $result) {