Skip to content

Conversation

@TimWolla
Copy link
Contributor

ZCOUNT returns an int:

Integer reply: the number of members in the specified score range.

@TimWolla TimWolla requested a review from tillkruss as a code owner May 26, 2025 09:24
@TimWolla
Copy link
Contributor Author

Please advice regarding the CHANGELOG entry. Is sending a PR targeting v2.x even appropriate? I'm seeing main has “Unreleased” in the CHANGELOG, but v2.x does not.

@vladvildanov
Copy link
Contributor

@TimWolla Hi! I think v2.x is CVE and bugfixes only, correct me if I'm wrong @tillkruss

@TimWolla
Copy link
Contributor Author

and bugfixes

I would say that fixing the return type to match the reality is a bugfix 😄

ZCOUNT returns an `int`:

> Integer reply: the number of members in the specified score range.
@coveralls
Copy link

coveralls commented May 26, 2025

Coverage Status

coverage: 88.834%. first build
when pulling 06cb8e8 on TimWolla:zcount-type
into f49e13e on predis:v2.x.

Copy link
Member

@tillkruss tillkruss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the tests are checking for integers as well.

@vladvildanov vladvildanov merged commit c4b9c34 into predis:v2.x May 27, 2025
29 checks passed
vladvildanov pushed a commit that referenced this pull request May 27, 2025
* Fix return type for ZCOUNT

ZCOUNT returns an `int`:

> Integer reply: the number of members in the specified score range.

* Update CHANGELOG.md

---------

Co-authored-by: Till Krüss <[email protected]>
@TimWolla TimWolla deleted the zcount-type branch May 27, 2025 10:47
tillkruss added a commit that referenced this pull request May 27, 2025
* Fix return type for ZCOUNT (#1546)

* Fix return type for ZCOUNT

ZCOUNT returns an `int`:

> Integer reply: the number of members in the specified score range.

* Update CHANGELOG.md

---------

Co-authored-by: Till Krüss <[email protected]>

* Added changelog entry

---------

Co-authored-by: Tim Düsterhus <[email protected]>
Co-authored-by: Till Krüss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants