1 | <?php |
||
22 | class BatchQueue extends DatabaseQueue |
||
23 | { |
||
24 | /** |
||
25 | * The AWS Batch client. |
||
26 | * |
||
27 | * @var BatchClient |
||
28 | */ |
||
29 | protected $batch; |
||
30 | |||
31 | protected $jobDefinition; |
||
32 | |||
33 | public function __construct( |
||
45 | |||
46 | public function push($job, $data = '', $queue = null) |
||
52 | |||
53 | public function pushRaw($payload, $queue = null, array $options = []) |
||
57 | |||
58 | /** |
||
59 | * Get the display name for the given job. |
||
60 | * |
||
61 | * @param mixed $job |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function getBatchDisplayName($job) |
||
73 | |||
74 | /** |
||
75 | * Push a raw payload to the database, then to AWS Batch, with a given delay. |
||
76 | * |
||
77 | * @param string|null $queue |
||
78 | * @param string $payload |
||
79 | * @param string $jobName |
||
80 | * |
||
81 | * @return int |
||
82 | */ |
||
83 | protected function pushToBatch($queue, $payload, $jobName) |
||
98 | |||
99 | public function getJobById($id) |
||
117 | |||
118 | protected function marshalJob($queue, $job) |
||
132 | |||
133 | /** |
||
134 | * Release the job, without deleting first from the Queue |
||
135 | * |
||
136 | * @param string $queue |
||
137 | * @param \StdClass $job |
||
138 | * @param int $delay |
||
139 | * |
||
140 | * @return int |
||
141 | * @throws UnsupportedException |
||
142 | */ |
||
143 | public function release($queue, $job, $delay) |
||
154 | |||
155 | /* |
||
156 | * Function pop() from parent class need to be executed on Laravel 6.x |
||
157 | */ |
||
158 | // public function pop($queue = null) |
||
159 | // { |
||
160 | // throw new UnsupportedException('The BatchQueue does not support running via a regular worker. ' . |
||
161 | // 'Instead, you should use the queue:batch-work command with a job id.'); |
||
162 | // } |
||
163 | |||
164 | public function bulk($jobs, $data = '', $queue = null) |
||
169 | |||
170 | public function later($delay, $job, $data = '', $queue = null) |
||
174 | } |
||
175 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: