1 | <?php declare(strict_types = 1); |
||
11 | class Bar |
||
12 | { |
||
13 | /** |
||
14 | * @var float |
||
15 | */ |
||
16 | private $b; |
||
17 | |||
18 | /** |
||
19 | * @var Meh |
||
20 | */ |
||
21 | private $meh; |
||
22 | |||
23 | /** |
||
24 | * @var Meh[] |
||
25 | */ |
||
26 | private $mehs; |
||
27 | |||
28 | /** |
||
29 | * Bar constructor. |
||
30 | * |
||
31 | * @param float $b |
||
32 | * @param Meh $meh |
||
33 | * @param Meh[] ...$mehs |
||
34 | */ |
||
35 | public function __construct(float $b, Meh $meh, Meh ...$mehs) |
||
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..