Downgrade Symfony Command Attribute
#[AsCommand(name: 'app:create-user', description: 'some description')]
class CreateUserCommand extends Command
{
+ protected function configure(): void
+ {
+ $this->setName('app:create-user');
+ $this->setDescription('some description');
+ }
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Symfony\DowngradeSymfony70\Rector\Class_\DowngradeSymfonyCommandAttributeRector;
return RectorConfig::configure()
->withRules([
DowngradeSymfonyCommandAttributeRector::class,
]);