diff --git a/CHANGELOG.md b/CHANGELOG.md index 2104e08d..ab3f12a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased ### Fixed - Fixed PHP 8.4 deprecated call to `stream_context_set_option()` +- Fixed return type for `ZCOUNT` to be `int` (#1547) ## v3.0.1 (2025-05-16) ### Fixed diff --git a/src/ClientInterface.php b/src/ClientInterface.php index 178b3e46..6704bfff 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -305,7 +305,7 @@ use Predis\Response\Status; * @method string xtrim(string $key, array|string $strategy, string $threshold, array $options = null) * @method int zadd(string $key, array $membersAndScoresDictionary) * @method int zcard(string $key) - * @method string zcount(string $key, int|string $min, int|string $max) + * @method int zcount(string $key, int|string $min, int|string $max) * @method array zdiff(array $keys, bool $withScores = false) * @method int zdiffstore(string $destination, array $keys) * @method string zincrby(string $key, int $increment, string $member)