Skip to content

Support for new invokable console commands #446

Open
@benr77

Description

@benr77

Symfony 7.3 introduces a new way to write console commands which is significantly simpler than the previous approach (which is also still valid).

However, when analysing the codebase containing one of the new invokable console commands, we see the following error:

Internal error: The service "App\Console\ActivityTestCommand" tagged
"console.command" must be a subclass of "Symfony\Component\Console\Command\Command". 
while analysing file  /app/tests/Unit/App/Model/Journal/JournalTest.php   

Is there any way to bypass this error?

Is this the right place for PHPStan to support this new approach?

Thanks

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