diff --git a/EventDispatch.php b/EventDispatch.php index 9dbf985..38828c5 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -43,7 +43,10 @@ class EventDispatch extends Component implements EventDispatcherInterface $lists->top(); while ($lists->valid()) { try { - call_user_func($lists->current(), $event); + $callback = $lists->current(); + + var_dump($callback); + call_user_func($callback, $event); } catch (\Throwable $exception) { $this->logger->error($exception->getMessage(), [$exception]); }