8000 Console commands with numeric namespaces are renumbered by array_merge · Issue #34111 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Console commands with numeric namespaces are renumbered by array_merge #34111
Closed
@Bilge

Description

@Bilge

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

  1. Add a Console command with a numeric namespace.
  2. Run bin/console.

Possible Solution
In ApplicationDescription, line 134 should be $namespacedCommands = $globalCommands + $namespacedCommands; because avoiding the array_merge() prevents the renumbering.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0