UseClassKeywordForClassNameResolutionRector

Use class keyword for class name resolution in string instead of hardcoded string reference

-$value = 'App\SomeClass::someMethod()';
+$value = \App\SomeClass::class . '::someMethod()';

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\String_\UseClassKeywordForClassNameResolutionRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        UseClassKeywordForClassNameResolutionRector::class,
    ]);
SETS:  Coding Style