Conditions | 4 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function getValues(): array |
||
43 | { |
||
44 | $generator = function (Expression ...$expressions) { |
||
45 | foreach ($expressions as $expression) { |
||
46 | foreach ($expression->getValues() as $key => $value) { |
||
47 | if (is_numeric($key)) { |
||
48 | yield $value; |
||
49 | } else { |
||
50 | yield $key => $value; |
||
51 | } |
||
52 | } |
||
53 | } |
||
54 | }; |
||
55 | |||
56 | return iterator_to_array($generator(...$this->expressions)); |
||
57 | } |
||
58 | } |
||
59 |
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..