1 | <?php declare(strict_types=1); |
||
9 | trait HasCountryTrait |
||
10 | { |
||
11 | /** |
||
12 | * @var Country $country |
||
13 | * @ORM\Column(type="string", length=3, nullable=false) |
||
14 | */ |
||
15 | private $country; |
||
16 | |||
17 | /** |
||
18 | * @return Country |
||
19 | */ |
||
20 | public function getCountry(): Country |
||
24 | |||
25 | /** |
||
26 | * @param Country $country |
||
27 | */ |
||
28 | public function setCountry(Country $country): void |
||
32 | } |
||
33 |
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..