[Console] Make sure we pass a numeric array of arguments to call_user_func_array().
This commit is contained in:
parent
995d784a0d
commit
67102c32e6
@ -204,7 +204,7 @@ class TextDescriptor extends Descriptor
|
|||||||
// calculate max. width based on available commands per namespace
|
// calculate max. width based on available commands per namespace
|
||||||
$width = $this->getColumnWidth(\call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
|
$width = $this->getColumnWidth(\call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
|
||||||
return array_intersect($namespace['commands'], array_keys($commands));
|
return array_intersect($namespace['commands'], array_keys($commands));
|
||||||
}, $namespaces)));
|
}, array_values($namespaces))));
|
||||||
|
|
||||||
if ($describedNamespace) {
|
if ($describedNamespace) {
|
||||||
$this->writeText(sprintf('<comment>Available commands for the "%s" namespace:</comment>', $describedNamespace), $options);
|
$this->writeText(sprintf('<comment>Available commands for the "%s" namespace:</comment>', $describedNamespace), $options);
|
||||||
|
Reference in New Issue
Block a user