Closed
Description
Symfony version(s) affected: 4.3.5
Description
Console commands that register their namespace as a number will be renumbered by an array_merge()
operation, such that if there is only one numeric namespace, it will always be renumbered to 0
. This is visible when the list
command emits text output.
How to reproduce
- Add a Console command with a numeric namespace.
- Run
bin/console
.
Possible Solution
In ApplicationDescription
, line 134 should be $namespacedCommands = $globalCommands + $namespacedCommands;
because avoiding the array_merge()
prevents the renumbering.