From ff48489d28260aa22d5eb62f5a9b02e97e8767ce Mon Sep 17 00:00:00 2001 From: Denis Smetannikov Date: Mon, 15 Nov 2021 12:36:25 +0200 Subject: [PATCH] Fixed var type --- src/EventManager.php | 1 + 1 file changed, 1 insertion(+) 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);