1 | <?php |
||
24 | class InputInvocationNode extends Rule implements ProvidesType, AstValueInterface |
||
25 | { |
||
26 | /** |
||
27 | * @return TypeInterface |
||
28 | */ |
||
29 | public function getType(): TypeInterface |
||
33 | |||
34 | /** |
||
35 | * @return ValueInterface |
||
36 | */ |
||
37 | public function unpack(): ValueInterface |
||
41 | |||
42 | /** |
||
43 | * @return iterable|ValueInterface[] |
||
44 | */ |
||
45 | private function getInnerValues(): iterable |
||
57 | } |
||
58 |
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: