Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #52668
License MIT

This class is internal, the return type can be safely updated. For the record, the false return type is already added on Redis6Proxy::hmget().

@nicolas-grekas
Copy link
Member

We cannot widen the return type before the extension does it. The CI failures are correct.

@alexandre-daubois
Copy link
Member Author

Alright, I was looking at an outdated class stub of the extension indeed. Let's close for now

@dkarlovi
Copy link
Contributor

The in between fix might be to test for false and return []

@alexandre-daubois
Copy link
Member Author

I don't think so, because the extension cannot, currently, return false. That's the problem. So we can't test that either 😕

@dkarlovi
Copy link
Contributor

The extension can return false, that's the whole bug here. 🤔

@alexandre-daubois
Copy link
Member Author

alexandre-daubois commented Nov 23, 2023

It doesn't seem: https://github.com/phpredis/phpredis/blob/ff305349dba87ab857a8f28acbc3b22af5a271cc/redis.stub.php#L2178

As long as this class isn't updated, we cannot widen the return type as stated by Nicolas. Maybe I'm looking at the wrong stub however?

@dkarlovi
Copy link
Contributor

No, that's correct, the stub is wrong, it's mentioned in the bug. :) It returns false on error even though it's not in the stub. Check the bug and the PHPRedis bug linked within. 😄

@alexandre-daubois
Copy link
Member Author

My bad, got it now 👍 Thanks for taking this time. I cannot reopen this PR, so I created this new one: #52700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants