Skip to content

Commit 9dec45c

Browse files
committed
issue-206: fix createPayload for laravel 5.7.*
1 parent 5bf8176 commit 9dec45c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Queue/RabbitMQQueue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function size($queueName = null): int
5858
/** {@inheritdoc} */
5959
public function push($job, $data = '', $queue = null)
6060
{
61-
return $this->pushRaw($this->createPayload($job, $data), $queue, []);
61+
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue, []);
6262
}
6363

6464
/** {@inheritdoc} */
@@ -107,7 +107,7 @@ public function pushRaw($payload, $queueName = null, array $options = [])
107107
/** {@inheritdoc} */
108108
public function later($delay, $job, $data = '', $queue = null)
109109
{
110-
return $this->pushRaw($this->createPayload($job, $data), $queue, ['delay' => $this->secondsUntil($delay)]);
110+
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue, ['delay' => $this->secondsUntil($delay)]);
111111
}
112112

113113
/**
@@ -122,7 +122,7 @@ public function later($delay, $job, $data = '', $queue = null)
122122
*/
123123
public function release($delay, $job, $data, $queue, $attempts = 0)
124124
{
125-
return $this->pushRaw($this->createPayload($job, $data), $queue, [
125+
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue, [
126126
'delay' => $this->secondsUntil($delay),
127127
'attempts' => $attempts,
128128
]);

0 commit comments

Comments
 (0)