diff --git a/src/Symfony/Component/Cache/Traits/Redis6Proxy.php b/src/Symfony/Component/Cache/Traits/Redis6Proxy.php index 0680404fc1eee..c4e049f06d186 100644 --- a/src/Symfony/Component/Cache/Traits/Redis6Proxy.php +++ b/src/Symfony/Component/Cache/Traits/Redis6Proxy.php @@ -653,7 +653,14 @@ public function ltrim($key, $start, $end): \Redis|bool public function mget($keys): \Redis|array { - return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->mget(...\func_get_args()); + /** + * Handle the special case where `mget()` returns false, waiting for the stub to be fixed. + * + * @see https://github.com/phpredis/phpredis/issues/1810 + */ + $v = ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->mget(...\func_get_args()); + + return $v === false ? [] : $v; } public function migrate($host, $port, $key, $dstdb, $timeout, $copy = false, $replace = false, #[\SensitiveParameter] $credentials = null): \Redis|bool