Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit a873575

Browse files
author
Thomas Rideout
committed
corrected signatures on createPayloadArray and subsuquent calls to this method from IronQueue::later and IronQueue::push
1 parent 046cf0b commit a873575

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/IronQueue.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(IronMQ $iron, Request $request, $default, $shouldEnc
7676
*/
7777
public function push($job, $data = '', $queue = null)
7878
{
79-
return $this->pushRaw($this->createPayload($job, $data, $queue), $queue);
79+
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue);
8080
}
8181

8282
/**
@@ -127,7 +127,7 @@ public function later($delay, $job, $data = '', $queue = null)
127127
{
128128
$delay = $this->secondsUntil($delay);
129129

130-
$payload = $this->createPayload($job, $data, $queue);
130+
$payload = $this->createPayload($job, $queue, $data);
131131

132132
return $this->pushRaw($payload, $queue, compact('delay'));
133133
}
@@ -275,9 +275,9 @@ public function setRequest(Request $request)
275275
* @param string $queue
276276
* @return array
277277
*/
278-
protected function createPayloadArray($job, $data = '', $queue = null)
278+
protected function createPayloadArray($job, $queue, $data = '')
279279
{
280-
return array_merge(parent::createPayloadArray($job, $data, $queue), [
280+
return array_merge(parent::createPayloadArray($job, $queue, $data), [
281281
'queue' => $this->getQueue($queue),
282282
]);
283283
}

0 commit comments

Comments
 (0)