| 1 | <?php |
||
| 19 | trait ChannelsAwareTrait |
||
| 20 | { |
||
| 21 | /** @var Collection|ChannelInterface[] */ |
||
| 22 | protected $channels; |
||
| 23 | |||
| 24 | public function initializeChannelsCollection(): void |
||
| 28 | |||
| 29 | public function getChannels(): Collection |
||
| 33 | |||
| 34 | public function addChannel(ChannelInterface $channel): void |
||
| 40 | |||
| 41 | public function removeChannel(ChannelInterface $channel): void |
||
| 47 | |||
| 48 | public function hasChannel(ChannelInterface $channel): bool |
||
| 52 | } |
||
| 53 |
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..