You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling lpush($key, json_encode($values)) I get a psalm error Argument 2 of lpush expects array<array-key, mixed>, but false|non-empty-string provided.
The ClientInterface defines the method as * @method int lpush($key, array $values)
but it should be * @method int lpush($key, ...$values).
In your test you also do not pass an array as $values, but a string: $redis->lpush('metavars', 'foo');
Some other functions in the ClientInterface are probably affected as well (lpushx, rpush..).
Versions (please complete the following information):
Predis: [1.1.10]
PHP [ 8.1.x]
Redis Server [e.g. 6.0.0]
OS [Ubuntu 20.04]
The text was updated successfully, but these errors were encountered:
Describe the bug
When calling
lpush($key, json_encode($values))
I get a psalm errorArgument 2 of lpush expects array<array-key, mixed>, but false|non-empty-string provided
.The ClientInterface defines the method as
* @method int lpush($key, array $values)
but it should be
* @method int lpush($key, ...$values)
.In your test you also do not pass an array as $values, but a string:
$redis->lpush('metavars', 'foo');
Some other functions in the ClientInterface are probably affected as well (lpushx, rpush..).
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: