Skip to content

Deprecation: The "Symfony\Component\Console\Command\Command::$defaultName" property is considered final #490

Closed
@axi

Description

@axi

Since Symfony 6.1, relying on the static property "$defaultName" for setting a command name is deprecated (symfony/symfony@ca3458c)

The replacement way is to add Symfony\Component\Console\Attribute\AsCommand but php attributes are available for php8.0+ and this library supports php7.2+.

I could provide a PR for this change but that would remove support on php7.2+.
Is it wanted ? Maybe it's time to release a 1.x version ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions