1 | <?php |
||
26 | trait TaxonAwareTrait |
||
27 | { |
||
28 | /** @var Collection|TaxonInterface[] */ |
||
29 | protected $taxonomies; |
||
30 | |||
31 | public function initializeTaxonCollection(): void |
||
35 | |||
36 | public function getTaxons(): Collection |
||
40 | |||
41 | public function hasTaxon(TaxonInterface $taxon): bool |
||
45 | |||
46 | public function addTaxon(TaxonInterface $taxon): void |
||
52 | |||
53 | public function removeTaxon(TaxonInterface $taxon): void |
||
59 | } |
||
60 |
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..