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

Commit

Permalink
corrected signatures on createPayloadArray and subsuquent calls to th…
Browse files Browse the repository at this point in the history
…is method from IronQueue::later and IronQueue::push
  • Loading branch information
Thomas Rideout committed Oct 11, 2018
1 parent 046cf0b commit a873575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/IronQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(IronMQ $iron, Request $request, $default, $shouldEnc
*/
public function push($job, $data = '', $queue = null)
{
return $this->pushRaw($this->createPayload($job, $data, $queue), $queue);
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue);
}

/**
Expand Down Expand Up @@ -127,7 +127,7 @@ public function later($delay, $job, $data = '', $queue = null)
{
$delay = $this->secondsUntil($delay);

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

return $this->pushRaw($payload, $queue, compact('delay'));
}
Expand Down Expand Up @@ -275,9 +275,9 @@ public function setRequest(Request $request)
* @param string $queue
* @return array
*/
protected function createPayloadArray($job, $data = '', $queue = null)
protected function createPayloadArray($job, $queue, $data = '')
{
return array_merge(parent::createPayloadArray($job, $data, $queue), [
return array_merge(parent::createPayloadArray($job, $queue, $data), [
'queue' => $this->getQueue($queue),
]);
}
Expand Down

0 comments on commit a873575

Please sign in to comment.