Skip to content
Snippets Groups Projects

Issue #3487951: Some event listeners is not added with addListener

Open Luca Lusso requested to merge issue/tracer-3487951:3487951-some-event-listeners into 1.1.x
2 files
+ 4
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -180,6 +180,10 @@ class TraceableEventDispatcher implements EventDispatcherTraceableInterface {
return;
}
if (!isset($this->notCalledListeners[$event_name][$priority])) {
return;
}
foreach ($this->notCalledListeners[$event_name][$priority] as $key => $listener) {
if ($listener['callable'][0] instanceof \Closure) {
$listener['callable'][0] = $listener['callable'][0]();
Loading