Conditions | 4 |
Paths | 4 |
Total Lines | 22 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function trigger(AbstractEventType $eventType) |
||
52 | { |
||
53 | foreach (self::$listener as $typeName => $listenerList) { |
||
54 | |||
55 | /** @var AbstractListener[] $listenerList */ |
||
56 | foreach ($listenerList as $listener) { |
||
57 | |||
58 | if ($typeName === $eventType::EVENT_TYPE) { |
||
59 | |||
60 | /** @var AbstractListener $listener */ |
||
61 | $listener = new $listener($eventType); |
||
62 | $listener->create()->getCallback()->execute($eventType); |
||
63 | |||
64 | } |
||
65 | |||
66 | } |
||
67 | |||
68 | |||
69 | |||
70 | } |
||
71 | |||
72 | } |
||
73 | |||
74 | } |
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..