Skip to content
Snippets Groups Projects
Commit c108b157 authored by Zach Bimson's avatar Zach Bimson Committed by Carlos Jimenez
Browse files

Swap out serialize for json_encode

parent f6560835
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ class Queue extends QueueBase implements ReliableQueueInterface {
try {
$channel = $this->getChannel();
// Data must be a string.
$item = new AMQPMessage(serialize($data), ['delivery_mode' => 2]);
$item = new AMQPMessage(json_encode($data), ['delivery_mode' => 2]);
// Default exchange and routing keys.
$exchange = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment