BedrockStreaming / RedisMock

A simple PHP Redis mock

Home Page:http://tech.m6web.fr/redismock-qui-a-bouchonne-mon-redis.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HDEL - wrong arguments

xeops opened this issue · comments

array_key_exists(): The first argument should be either a string or an integer at
m6web/redis-mock/src/M6Web/Component/RedisMock/RedisMock.php:756

vendor/predis/predis/src/ClientInterface.php:69

  • @method int hdel($key, array $fields)

you probably called hdel with bad arguments.
please check it

you probably called hdel with bad arguments.
please check it

Sorry for bad English and describing a problem, but.
When I call hdel like

$this->redis->hdel($key, [$field]);

i have an error

array_key_exists(): The first argument should be either a string or an integer at
m6web/redis-mock/src/M6Web/Component/RedisMock/RedisMock.php:756

But I cant send not array in hdel because in
vendor/predis/predis/src/ClientInterface.php:69
@method int hdel($key, array $fields)
accept only array as second variable.

I see. This library is so old. It needs to be updated with type hinting and other