-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove the type from sorted set scores so they support ints (#242
) Remove the type that the score arguments use in sorted set methods. When they were explicitly float, it was an error to pass in an int score. They are now defined as float|int, but are left untyped in the functions because union types are unsupported in the oldest versions of PHP we support. Update data validation to handle the new potential score types. Rearrange the arguments of sorted set functions that take a score range to put the min/max scores and min/max inclusive flags next to each other instead of interleaving them.
- Loading branch information
Showing
4 changed files
with
166 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.