Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 0337745

Browse files
committed
Merge branch 'hotfix/48'
Close #48
2 parents 1e373e0 + 532e39f commit 0337745

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/SharedEventManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ public function getListeners(array $identifiers, $eventName)
206206
}
207207

208208
foreach ($returnListeners as $priority => $listOfListeners) {
209-
// Argument unpacking requires PHP-5.6
210-
// $listeners[$priority] = array_merge(...$listOfListeners);
211-
$returnListeners[$priority] = call_user_func_array('array_merge', $listOfListeners);
209+
$returnListeners[$priority] = array_merge(...$listOfListeners);
212210
}
213211

214212
return $returnListeners;

0 commit comments

Comments
 (0)