Open
Description
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
Labels
No labels