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

Commit 532e39f

Browse files
committed
Merge pull request #48 from marc-mabe/arg_unpack
Use argument unpacking as min requirement is PHP-5.6 now
2 parents 1e373e0 + de50bef commit 532e39f

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)