$this->nodes is of type array<integer,object<Dis...onnection\Credentials>>, but the function expects a array<integer,object<Dis...onnection\Credentials>>.
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:
functionacceptsInteger($int){}$x='123';// string "123"// Instead ofacceptsInteger($x);// we recommend to useacceptsInteger((integer)$x);
Loading history...
43
}
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')
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: