It seems like array(array_shift($this->waiting)) of type array<integer,array<inte...Doorman\\Task>>|null"}> is incompatible with the declared type array<integer,array<inte...syncPHP\Doorman\Task>>> of property $queuing.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
85
86
1
return true;
87
}
88
89
/**
90
* Passes missing method calls to the decorated manager.
91
*
92
* @param string $method
93
* @param array $parameters
94
*
95
* @return mixed
96
*/
97
public function __call($method, array $parameters)
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: