We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc979ec + c866ab8 commit 01aacb3Copy full SHA for 01aacb3
src/DependencyInjection/Compiler/AddVotersPass.php
@@ -3,8 +3,8 @@
3
namespace Knp\Bundle\MenuBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
6
-use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\DependencyInjection\Reference;
9
10
/**
@@ -43,7 +43,7 @@ public function process(ContainerBuilder $container): void
43
}
44
45
krsort($voters);
46
- $sortedVoters = \call_user_func_array('array_merge', $voters);
+ $sortedVoters = array_merge(...$voters);
47
48
$definition->replaceArgument(0, new IteratorArgument($sortedVoters));
49
0 commit comments