Closed
Description
Symfony version(s) affected
6.3.5
Description
Redis::mget
can return false when no keys are provided. phpredis/phpredis#1810
This is annoying because the signature says mget(): \Redis|array
, but it's actually mget(): \Redis|array|false
.
Redis6Proxy::mget has the correct signature, but it doesn't handle the possible false.
How to reproduce
Set up PHPRedis v6 and do Redis6Proxy::mget([])
Possible Solution
Return [] if false.
Additional Context
IMO this is a bug in the module, but it's a bug since 2020.