From 00d87b68e7de8716524840e9bb295673cd4f52da Mon Sep 17 00:00:00 2001 From: Andie Chang <7233960+andiechang@users.noreply.github.com> Date: Wed, 24 Jun 2020 10:32:18 +0800 Subject: [PATCH] fix: Redis::zRangeByScore & Redis::zRevRangeByScore The parameter $start & $end must be string! --- src/redis/src/Connection/Connection.php | 4 ++-- src/redis/src/Redis.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/redis/src/Connection/Connection.php b/src/redis/src/Connection/Connection.php index 7d5de73c2..5d894266c 100644 --- a/src/redis/src/Connection/Connection.php +++ b/src/redis/src/Connection/Connection.php @@ -106,12 +106,12 @@ * @method int zLexCount(string $key, int $min, int $max) * @method array zRange(string $key, int $start, int $end, bool $withscores = null) * @method array zRangeByLex(string $key, int $min, int $max, int $offset = null, int $limit = null) - * @method array zRangeByScore(string $key, int $start, int $end, array $options = []) + * @method array zRangeByScore(string $key, string $start, string $end, array $options = []) * @method int zRank(string $key, string $member) * @method array zRemRangeByLex(string $key, int $min, int $max) * @method array zRevRange(string $key, int $start, int $end, bool $withscore = null) * @method array zRevRangeByLex(string $key, int $min, int $max, int $offset = null, int $limit = null) - * @method array zRevRangeByScore(string $key, int $start, int $end, array $options = []) + * @method array zRevRangeByScore(string $key, string $start, string $end, array $options = []) * @method int zRevRank(string $key, string $member) * @method float zScore(string $key, mixed $member) * @method array zScan(string $key, int &$iterator, string $pattern = null, int $count = 0) diff --git a/src/redis/src/Redis.php b/src/redis/src/Redis.php index 200d6e632..7abe220bc 100644 --- a/src/redis/src/Redis.php +++ b/src/redis/src/Redis.php @@ -105,7 +105,7 @@ * @method static array zRemRangeByLex(string $key, int $min, int $max) * @method static array zRevRange(string $key, int $start, int $end, bool $withscore = null) * @method static array zRevRangeByLex(string $key, int $min, int $max, int $offset = null, int $limit = null) - * @method static array zRevRangeByScore(string $key, int $start, int $end, array $options = []) + * @method static array zRevRangeByScore(string $key, string $start, string $end, array $options = []) * @method static int zRevRank(string $key, string $member) * @method static float zScore(string $key, mixed $member) * @method static array zScan(string $key, int &$iterator, string $pattern = null, int $count = 0)