1 | <?php |
||
5 | class VectorValue implements ValueInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var float[] |
||
9 | */ |
||
10 | protected $value; |
||
11 | |||
12 | /** |
||
13 | * @param float[]|array<integer,array> $value |
||
14 | */ |
||
15 | 4 | public function __construct($value) |
|
19 | |||
20 | /** |
||
21 | * @return \float[] |
||
22 | */ |
||
23 | 4 | public function getValue() |
|
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | 2 | public function scalar(ValueInterface $value) |
|
40 | |||
41 | } |
||
42 |
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..