Repository navigation
Accept phpredis ACL credentials in Redis::auth and RedisCluster::__construct - #14800
Merged
Merged
Conversation
…nstruct The PHP 7.0-8.4 callmaps typed the credentials as string (null|string for the cluster), so code analysed without the redis stub got PossiblyInvalidArgument for the array forms. Use the forms phpredis accepts (a password, a list of one or two strings, or user/pass keys) in the overrides and in the stub. Fixes vimeo#14796 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
✅ Performance: unchanged · Types: decreased
How to read this table
✅ laravel: issues +3 −4Memory 1 747 → 1 747 MB (<0.1 %) · Wall 101.9 → 101.5 s (−0.4 %) Weighted 53 070 → 53 062 (−8, −0.02 %): L1 +1 · L3 −1 · L6 −1
Changed in place (3) @@ src/Illuminate/Redis/Connectors/PhpRedisConnector.php:113 @@
- InvalidArgument: Argument 1 of Redis::auth expects string, but list{mixed, non-falsy-string} provided
+ MixedArgumentTypeCoercion: Argument 1 of Redis::auth expects array{0?: string, 1?: string, pass?: string, user?: string}|string, but parent type list{mixed, non-falsy-string} provided
@@ src/Illuminate/Redis/Connectors/PhpRedisConnector.php:115 MixedArgument @@
- …auth cannot be non-empty-mixed, expecting string
+ …auth cannot be non-empty-mixed, expecting array{0?: string, 1?: string, pass?: string, user?: string}|string
@@ src/Illuminate/Redis/Connectors/PhpRedisConnector.php:219 @@
- MixedArgument: Argument 6 of RedisCluster::__construct cannot be array<array-key, mixed>|mixed|null|string, expecting null|string
- PossiblyInvalidArgument: Argument 6 of RedisCluster::__construct expects null|string, but possibly different type possibly undefined array<array-key, mixed>|mixed|null|string provided
+ MixedArgument: Argument 6 of RedisCluster::__construct cannot be array<array-key, mixed>|mixed|null|string, expecting array{0?: string, 1?: string, pass?: string, user?: string}|null|string✅ symfony: issues +0 −1Memory 3 619 → 3 619 MB (<0.1 %) · Wall 286.7 → 286.8 s (<0.1 %) Weighted 100 455 → 100 452 (−3, <0.01 %): L3 −1
Removed (1)
✅ wordpress: issues +1 −1Memory 2 012 → 2 012 MB (<0.1 %) · Wall 193.1 → 196.0 s (+1.5 %)
Changed in place (1) @@ src/wp-includes/SimplePie/src/Cache/Redis.php:100 MixedArgument @@
- … Redis::auth cannot be mixed, expecting string
+ … Redis::auth cannot be mixed, expecting array{0?: string, 1?: string, pass?: string, user?: string}|stringhead 3cf4ca8 · base e3b3676 (merge-base) · workflow run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redis::auth()rejects phpredis ACL credentials: the PHP 7.0–8.4 callmaps type them asstring(used when the redis stub isn't loaded), and the stub misses theuser/passkeyed forms.Before
After
Fixes #14796
🤖 Generated with Claude Code