Skip to content
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

Tighter return types for Redis::(keys|hKeys|hVals|hGetAll)() #1618

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

BenMorel
Copy link
Contributor

No description provided.

@LolGleb
Copy link
Contributor

LolGleb commented Feb 16, 2024

I checked Redis sources here https://github.com/phpredis/phpredis/blob/develop/redis.stub.php and I wasn't able to find any confirmation that this change is necessary. Could you please provide any links to the Redis sources where you could see list<string> usage instead of array?

@BenMorel
Copy link
Contributor Author

Actually you're right, I didn't know about Redis::OPT_SERIALIZER, so actually values may be mixed and not just string. I adjusted this and opened a PR on phpredis, let's see what they think: phpredis/phpredis#2445

@LolGleb
Copy link
Contributor

LolGleb commented Feb 27, 2024

I see that the PR has been approved but the one thing that still concerns me is that the types still don't match. For example, I see array<string, mixed> in phpredis and I see array<string, string> in PhpStorm stubs. Is that how it's meant to be?

@BenMorel
Copy link
Contributor Author

BenMorel commented Mar 1, 2024

Yes sorry, I was waiting for feedback on the other PR before updating this one. Done now!

@LolGleb LolGleb merged commit 9608c95 into JetBrains:master Mar 2, 2024
10 of 11 checks passed
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