8000 fix: RedisCluster::publish returns a cluster_long_resp by PROFeNoM · Pull Request #2434 · phpredis/phpredis · GitHub
[go: up one dir, main page]

Skip to content

fix: RedisCluster::publish returns a cluster_long_resp #2434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

PROFeNoM
Copy link
Contributor

Hi 👋

While updating our test suites for phpredis v6, I stumbled upon the following error:

Fatal error: RedisCluster::publish(): Return value must be of type RedisCluster|bool, int returned in Unknown on line 0

I haven't looked deeply into it, but I think that may be sufficient.

@michael-grunder michael-grunder merged commit 14f9333 into phpredis:develop Jan 16, 2024
@michael-grunder
Copy link
Member

Good catch!

bool is only ever returned on error. I'm surprised no one has encountered this yet.

xabbuh added a commit to symfony/symfony that referenced this pull request Jan 17, 2024
This PR was merged into the 6.3 branch.

Discussion
----------

[Cache] fix Redis proxies tests

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | phpredis/phpredis#2423, phpredis/phpredis#2434
| License       | MIT

Commits
-------

669741a fix Redis proxies tests
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.

2 participants
0