1 | <?php |
||
6 | final class CompositeExpression extends Expression |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $operator; |
||
12 | |||
13 | /** |
||
14 | * @var Expression[] |
||
15 | */ |
||
16 | private $expressions = []; |
||
17 | |||
18 | /** |
||
19 | * CompositeExpression constructor. |
||
20 | * @param string $operator |
||
21 | * @param Expression[] ...$expressions |
||
22 | */ |
||
23 | protected function __construct(string $operator, Expression ...$expressions) |
||
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | public function __toString(): string |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function getValues(): array |
||
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..