diff --git a/src/EventManager.php b/src/EventManager.php index 803cb53..38bd179 100644 --- a/src/EventManager.php +++ b/src/EventManager.php @@ -198,6 +198,7 @@ public function getList(string $eventName): array $ePaths = \explode('.', $eventName); foreach ($this->list as $eName => $eData) { + $eName = (string)$eName; if ($eName === $eventName) { /** @noinspection SlowArrayOperationsInLoopInspection */ $result = \array_merge($result, $eData);