1 | <?php |
||
14 | class Queue extends Object |
||
15 | { |
||
16 | /** |
||
17 | * An array of Disque connections |
||
18 | * @param array $nodes |
||
19 | */ |
||
20 | private $nodes; |
||
21 | |||
22 | /** |
||
23 | * Adds client connections |
||
24 | * @param array $clients |
||
25 | * @return true |
||
26 | */ |
||
27 | public function setClients($clients = []) |
||
35 | |||
36 | /** |
||
37 | * Retrieves the queue |
||
38 | * @return Disque\Client |
||
39 | */ |
||
40 | public function get() |
||
44 | |||
45 | /** |
||
46 | * Adds a new job to a queue |
||
47 | * @param array $jobProperties |
||
48 | * @param string $queueName |
||
49 | * return |
||
50 | */ |
||
51 | public function addJob($jobProperties = [], $queueName = 'app') |
||
56 | } |
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: