Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDEL - wrong arguments #89

Open
xeops opened this issue Nov 1, 2019 · 3 comments
Open

HDEL - wrong arguments #89

xeops opened this issue Nov 1, 2019 · 3 comments

Comments

@xeops
Copy link

xeops commented Nov 1, 2019

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)
@omansour
Copy link
Contributor

omansour commented Nov 4, 2019

you probably called hdel with bad arguments.
please check it

@omansour omansour closed this as completed Nov 4, 2019
@xeops
Copy link
Author

xeops commented Nov 5, 2019

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.

@omansour omansour reopened this Nov 5, 2019
@omansour
Copy link
Contributor

omansour commented Nov 5, 2019

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

@omansour omansour pinned this issue Nov 6, 2019
@t-geindre t-geindre unpinned this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants