From ffefd790061d5bce9e86e04e2a926f482da4fb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 23 Jun 2022 00:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EventDispatch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EventDispatch.php b/EventDispatch.php index 0ec8a9f..af76dec 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -44,6 +44,11 @@ class EventDispatch extends Component implements EventDispatcherInterface while ($lists->valid()) { try { $current = $lists->current(); + if (is_array($current)) { + var_dump($current[0]::class, $current[1]); + } else if (is_string($current)) { + var_dump($current); + } call_user_func($current, $event); } catch (\Throwable $exception) { $this->logger->error($exception->getMessage(), [$exception]);