Skip to content

Commit 9da7cfb

Browse files
Iltar van der Bergnicolas-grekas
authored andcommitted
[DI] Minor performance tweak in PriorityTaggedServiceTrait
1 parent dee6ec6 commit 9da7cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/MessengerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function registerHandlers(ContainerBuilder $container)
100100

101101
foreach ($handlersByMessage as $message => $handlers) {
102102
krsort($handlersByMessage[$message]);
103-
$handlersByMessage[$message] = \call_user_func_array('array_merge', $handlersByMessage[$message]);
103+
$handlersByMessage[$message] = array_merge(...$handlersByMessage[$message]);
104104
}
105105

106106
$definitions = array();

0 commit comments

Comments
 (0)