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

[6.x] Fix the return type of spop for phpredis #36106

Merged
merged 4 commits into from Feb 1, 2021
Merged

[6.x] Fix the return type of spop for phpredis #36106

merged 4 commits into from Feb 1, 2021

Conversation

zingimmick
Copy link
Contributor

This PR fixes the return type of spop for phpredis and add missing spop test to redis connection.

Current Behaviour

When called spop without the count argument, it returns array.

Fixed Behaviour

When called spop without the count argument, it returns string.

Reference

Return value of SPOP

When called without the count argument:
Bulk string reply: the removed member, or nil when key does not exist.

When called with the count argument:
Array reply: the removed members, or nil when key does not exist.

@zingimmick zingimmick changed the title Fix the return type of spop for phpredis [6.x]Fix the return type of spop for phpredis Feb 1, 2021
@zingimmick zingimmick changed the title [6.x]Fix the return type of spop for phpredis [6.x] Fix the return type of spop for phpredis Feb 1, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants