It seems like $config->get('eventListener') of type * is incompatible with the declared type array<integer,object<Fau...vent\AbstractListener>> of property $listener.
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..
Loading history...
37
self::$instance = new self();
38
39
}
40
41
return self::$instance;
42
}
43
44
/**
45
* @param AbstractEventType $eventType
46
*/
47
public function trigger(AbstractEventType $eventType)
48
{
49
foreach (self::$listener as $typeName => $listenerList) {
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..