getMultiple method doesn't work
d-pylypenko opened this issue · 4 comments
d-pylypenko commented
Hi,
\Amp\Redis\Redis::getMultiple(string $key, string ...$keys)
the method receives a key and keys as arguments, but only keys without a first key are passed to array_combine. As a result, we get more answers than there is in the keys.
Result:
ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
kelunik commented
Do you want to provide a PR?
d-pylypenko commented
kelunik commented
Thanks!
kelunik commented
@dmitry-pilipenko Tagged as https://github.com/amphp/redis/releases/tag/v1.0.6. :-)