Skip to content

Commit

Permalink
Fixed var type
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Nov 15, 2021
1 parent 7409707 commit ff48489
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EventManager.php
Expand Up @@ -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);
Expand Down

0 comments on commit ff48489

Please sign in to comment.