Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67102c3

Browse files
committed
[Console] Make sure we pass a numeric array of arguments to call_user_func_array().
1 parent 995d784 commit 67102c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ protected function describeApplication(Application $application, array $options
204204
// calculate max. width based on available commands per namespace
205205
$width = $this->getColumnWidth(\call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
206206
return array_intersect($namespace['commands'], array_keys($commands));
207-
}, $namespaces)));
207+
}, array_values($namespaces))));
208208

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

0 commit comments

Comments
 (0)