I am trying to run a slim project, and its throwing an error from the Dispatcher file. the error is on this function: public function getListeners($eventName) { $listeners = $this->listeners[$eventName] ?? [];
$listeners = array_merge(
$listeners,
$this->wildcardsCache[$eventName] ?? $this->getWildcardListeners($eventName)
);
return class_exists($eventName, false)
? $this->addInterfaceListeners($eventName, $listeners)
: $listeners;
}
any suggestion on how to correct this error?