We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292552b commit ffe3027Copy full SHA for ffe3027
src/Consumer.php
@@ -135,10 +135,12 @@ public function invoke(Envelope $envelope, Queue $queue)
135
136
$this->dispatcher->dispatch(BernardEvents::ACKNOWLEDGE, new EnvelopeEvent($envelope, $queue));
137
138
- } catch (\Exception $exception) {
139
- $this->rejectDispatch($exception, $envelope, $queue);
140
} catch (\Throwable $error) {
+ // php 7
141
$this->rejectDispatch($error, $envelope, $queue);
+ } catch (\Exception $exception) {
142
+ // php 5
143
+ $this->rejectDispatch($exception, $envelope, $queue);
144
}
145
146
0 commit comments