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