amphp/redis

getMultiple method doesn't work

d-pylypenko opened this issue · 4 comments

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

Do you want to provide a PR?

@kelunik sure, here is the PR: #72

Thanks!