1 | <?php |
||
18 | final class PromoteEmployee implements NamedMessage |
||
19 | { |
||
20 | /** @var string */ |
||
21 | public $id; |
||
22 | |||
23 | /** @var string */ |
||
24 | public $position = ''; |
||
25 | |||
26 | /** @var int */ |
||
27 | public $salaryScale = 0; |
||
28 | |||
29 | public function __construct(string $id) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public static function messageName(): string |
||
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..