diff --git a/lib/private/RedisFactory.php b/lib/private/RedisFactory.php index dcb56cee9ef8d..8f234d9c4430e 100644 --- a/lib/private/RedisFactory.php +++ b/lib/private/RedisFactory.php @@ -77,7 +77,7 @@ private function create() { $this->instance = new \Redis(); $host = $config['host'] ?? '127.0.0.1'; - $port = $config['port'] ?? ($host[0] !== '/' ? 6379 : null); + $port = $config['port'] ?? ($host[0] !== '/' ? 6379 : 0); $this->eventLogger->start('connect:redis', 'Connect to redis and send AUTH, SELECT'); // Support for older phpredis versions not supporting connectionParameters