Skip to content

Commit

Permalink
修复严格模式下因为类型不一致而报错
Browse files Browse the repository at this point in the history
  • Loading branch information
hsldymq committed Jun 18, 2020
1 parent 2555ef4 commit 60a2f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ private function bindConsumer(Channel $channel): PromiseInterface

return all($promises)->then(null, function ($reason) {
if ($reason instanceof \Throwable) {
throw new ConsumerBindingException($reason->getMessage(), null, $reason);
throw new ConsumerBindingException($reason->getMessage(), 0, $reason);
} else {
throw new ConsumerBindingException($reason);
throw new ConsumerBindingException(strval($reason));
}
});
}
Expand Down

0 comments on commit 60a2f84

Please sign in to comment.