Skip to content

Commit 03baedf

Browse files
authored
Merge pull request #14 from joesb/dev-master
Payloads: Laravel 5.7 queues compatibility?
2 parents ff70bcb + 1d6c5c6 commit 03baedf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Queue/KafkaQueue.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function size($queue = null)
8080
*/
8181
public function push($job, $data = '', $queue = null)
8282
{
83-
return $this->pushRaw($this->createPayload($job, $data), $queue, []);
83+
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue, []);
8484
}
8585

8686
/**
@@ -222,14 +222,14 @@ public function getConfig()
222222
* Create a payload array from the given job and data.
223223
*
224224
* @param string $job
225-
* @param mixed $data
226225
* @param string $queue
226+
* @param mixed $data
227227
*
228228
* @return array
229229
*/
230-
protected function createPayloadArray($job, $data = '', $queue = null)
230+
protected function createPayloadArray($job, $queue = null, $data = '')
231231
{
232-
return array_merge(parent::createPayloadArray($job, $data), [
232+
return array_merge(parent::createPayloadArray($job, $queue, $data), [
233233
'id' => $this->getCorrelationId(),
234234
'attempts' => 0,
235235
]);

0 commit comments

Comments
 (0)