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
Allows RedisClusterProxy instance in Lock RedisStore #37590
Conversation
failing Travis test is related to branch 3.4 (when Redis server is not running) |
Are the failures related? Can you rebase to retrigger maybe? |
rebased. Faillure are not related. failure is about test against branch 3.4 without Redis container running nor mechanism to early exit when redis is not runing |
CI green @nicolas-grekas |
Thank you @jderusse. |
@@ -33,13 +33,13 @@ class RedisStore implements StoreInterface | |||
private $initialTtl; | |||
|
|||
/** | |||
* @param \Redis|\RedisArray|\RedisCluster|\Predis\ClientInterface $redisClient | |||
* @param float $initialTtl the expiration delay of locks in seconds | |||
* @param \Redis|\RedisArray|\RedisCluster|RedisProxy|RedisClusterProxy\Predis\ClientInterface $redisClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jderusse There is a bug: no pipe in RedisClusterProxy\Predis\ClientInterface
leads to wrong class FQN.
This is a fix for a regression from symfony#37590
This is a fix for a regression from symfony#37590
This PR was merged into the 4.4 branch. Discussion ---------- Fix RedisStore constructor signature | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | no | License | MIT | Doc PR | no This is a fix for a regression from #37590 Commits ------- 6831271 Fix RedisStore constructor signature
This PR allow clients instance of RedisClusterProxy created by the StoreFactory in #28691 /cc @nicolas-grekas