Skip to content

Commit 8b93085

Browse files
authored
Merge pull request php-enqueue#1124 from atrauzzi/fix/stomp-exception
Fix - Bad parameter for exception
2 parents ec336fc + 7d0f07d commit 8b93085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/stomp/StompConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function receive(int $timeout = 0): ?Message
111111
}
112112
}
113113
} catch (ErrorFrameException $e) {
114-
throw new Exception($e->getMessage()."\n".$e->getFrame()->getBody(), null, $e);
114+
throw new Exception($e->getMessage()."\n".$e->getFrame()->getBody(), 0, $e);
115115
}
116116

117117
return null;

0 commit comments

Comments
 (0)