Skip to content

Commit 00f24b3

Browse files
Iltar van der Bergnicolas-grekas
authored andcommitted
[DI] Minor performance tweak in PriorityTaggedServiceTrait
1 parent c5e7d13 commit 00f24b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Descriptor/TextDescriptor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ protected function describeApplication(Application $application, array $options
210210
}
211211

212212
// calculate max. width based on available commands per namespace
213-
$width = $this->getColumnWidth(call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
213+
$width = $this->getColumnWidth(array_merge(...array_values(array_map(function ($namespace) use ($commands) {
214214
return array_intersect($namespace['commands'], array_keys($commands));
215-
}, $namespaces)));
215+
}, $namespaces))));
216216

217217
if ($describedNamespace) {
218218
$this->writeText(sprintf('<comment>Available commands for the "%s" namespace:</comment>', $describedNamespace), $options);

0 commit comments

Comments
 (0)