You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
Hello, first of all thank you for the driver as it allows to usage of Iron queues easily in a laravel application. While working on a laravel 5.7 application I noticed what it seems a possible bug.
Stack
PHP 7.2
Laravel 5.7
issue:
the createPayloadArray method calls the parent::createPayloadArray, and its passing the method parameters in a different order.
Current the signature in IronQueue is:
protected function createPayloadArray($job, $data = '', $queue = null)
and the parent one is:
protected function createPayloadArray($job, $queue, $data = '')
This results in the payload being incorrectly generated, which will make the job process fail.
Fix suggestion:
On IronQueue, the push method would be changed to:
public function push($job, $data = '', $queue = null)
{
return $this->pushRaw($this->createPayload($job, $queue, $data), $queue);
}
On IronQueue, the later method would be changed to:
The payload is generated correctly which allows the job to be process as expected.
Once again, thanks for the good work and I hope this helps.
The text was updated successfully, but these errors were encountered:
brseixas
changed the title
Method createPayload signature on IronQueue is different then the parent
On Laravel 5.7, method createPayload signature of IronQueue is different then the parent
Oct 10, 2018
brseixas
changed the title
On Laravel 5.7, method createPayload signature of IronQueue is different then the parent
Method createPayload signature of IronQueue is different then the parent
Oct 10, 2018
Hello, first of all thank you for the driver as it allows to usage of Iron queues easily in a laravel application. While working on a laravel 5.7 application I noticed what it seems a possible bug.
Stack
issue:
Current the signature in IronQueue is:
protected function createPayloadArray($job, $data = '', $queue = null)
and the parent one is:
protected function createPayloadArray($job, $queue, $data = '')
This results in the payload being incorrectly generated, which will make the job process fail.
Fix suggestion:
On IronQueue, the push method would be changed to:
On IronQueue, the later method would be changed to:
On IronQueue, the createPayloadArray method would be changed to:
The payload is generated correctly which allows the job to be process as expected.
Once again, thanks for the good work and I hope this helps.
The text was updated successfully, but these errors were encountered: