Configurable

RenameAttributeRector

Rename attribute class names

-#[SimpleRoute()]
+#[BasicRoute()]
 class SomeClass
 {
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\Class_\RenameAttributeRector;
use Rector\Renaming\ValueObject\RenameAttribute;

return RectorConfig::configure()
    ->withConfiguredRule(RenameAttributeRector::class, [
        new RenameAttribute('SimpleRoute', 'BasicRoute'),
    ]);