Skip to content

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.

3 participants