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

redis: add possible types for Redis#auth method #10934

Merged
merged 2 commits into from
May 5, 2024

Conversation

boesing
Copy link
Contributor

@boesing boesing commented May 2, 2024

With v6.0.0, Redis#auth also accepts an array with 2 values where the first value represents the user and the second password.

I am not sure if they accept array as of 6.0 but as of the "official" stub, auth does also accept an array with just the password:
https://github.com/phpredis/phpredis/blob/f350dc342cb3520b2ee663664a22c25f29bc8aaf/redis.stub.php#L581-L594

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@orklah
Copy link
Collaborator

orklah commented May 2, 2024

I'm not sure Psalm can correctly process the attribute here, can you remove it just in case?

@boesing
Copy link
Contributor Author

boesing commented May 2, 2024

ah I can, yes. Was thinking it might have benefits for tentative thingy.
will drop that somewhen the next days

I was expecting that it might have a benefit regarding tentative types but it seems that psalm does not use that and thus was suggested to be removed.

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
@weirdan weirdan added internal stubs/callmap release:fix The PR will be included in 'Fixes' section of the release notes labels May 5, 2024
@weirdan weirdan merged commit 0b37d26 into vimeo:5.x May 5, 2024
51 of 52 checks passed
@weirdan
Copy link
Collaborator

weirdan commented May 5, 2024

Thanks!

@boesing boesing deleted the qa/redis-types branch May 5, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal stubs/callmap release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants