Turn method names to new ones
-SomeClass::oldStaticMethod();
+AnotherExampleClass::newStaticMethod();
Configure your rector.php:
<?php
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
use Rector\Renaming\ValueObject\RenameStaticMethod;
return RectorConfig::configure()
->withConfiguredRule(RenameStaticMethodRector::class, [
new RenameStaticMethod('SomeClass', 'oldMethod', 'AnotherExampleClass', 'newStaticMethod'),
]);