diff --git a/EventDispatch.php b/EventDispatch.php index 9e3e3c0..0d05985 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -38,6 +38,9 @@ class EventDispatch extends Component implements EventDispatcherInterface { /** @var \SplPriorityQueue $lists */ $lists = $this->eventProvider->getListenersForEvent($event); + if (!$lists->valid()) { + return $event; + } $lists->top(); while ($lists->valid()) { try {