-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] Ensure that a TransportException is thrown on redis error #31298
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
Conversation
chalasr
commented
Apr 27, 2019
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
bec60ac
to
4d7f3c0
Compare
Thank you @chalasr. |
…n redis error (chalasr) This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Ensure that a TransportException is thrown on redis error | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- 1857395 [Messenger] Ensure that a TransportException is thrown on redis error
} | ||
|
||
public function setup(): void | ||
{ | ||
$this->connection->xgroup('CREATE', $this->stream, $this->group, 0, true); | ||
try { | ||
$this->connection->xGroup('CREATE', $this->stream, $this->group, 0, true); |
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.
@chalasr Thanks for the fixes. Just to mention it here if mocking this with prophecy the function need to be called the lowercase version. See phpredis/phpredis#1489
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.
Thanks! see #31346
This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Lowercased method calls on \Redis | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31298 (comment) | License | MIT | Doc PR | n/a https://github.com/phpredis/phpredis/blob/64e71b5307b76f49a71ff43a09e984a80d9a7f12/php_redis.h#L231-L244 Commits ------- 2d41976 [Messenger] Lowercased method calls on \Redis