1 | <?php |
||
11 | class Invited |
||
12 | { |
||
13 | use ImmutableTrait, SerializableTrait; |
||
14 | |||
15 | /** |
||
16 | * @var Invitee[] |
||
17 | */ |
||
18 | private $invitee; |
||
19 | |||
20 | /** |
||
21 | * Invited constructor. |
||
22 | * @param array $invitee |
||
23 | * @throws ImmutableException |
||
24 | */ |
||
25 | public function __construct(Collection $invitee) |
||
31 | |||
32 | /** |
||
33 | * @return Invitee[] |
||
34 | */ |
||
35 | public function getInvitee(): Collection |
||
39 | } |
||
40 |
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..