mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
7ba32aac1f
e12c73eb33
[psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
21 lines
950 B
PHP
21 lines
950 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202401;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
|
|
use Rector\Php55\Rector\ClassConstFetch\StaticToSelfOnFinalClassRector;
|
|
use Rector\Php55\Rector\FuncCall\GetCalledClassToSelfClassRector;
|
|
use Rector\Php55\Rector\FuncCall\GetCalledClassToStaticClassRector;
|
|
use Rector\Php55\Rector\FuncCall\PregReplaceEModifierRector;
|
|
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rule(StringClassNameToClassConstantRector::class);
|
|
$rectorConfig->rule(ClassConstantToSelfClassRector::class);
|
|
$rectorConfig->rule(PregReplaceEModifierRector::class);
|
|
$rectorConfig->rule(GetCalledClassToSelfClassRector::class);
|
|
$rectorConfig->rule(GetCalledClassToStaticClassRector::class);
|
|
$rectorConfig->rule(StaticToSelfOnFinalClassRector::class);
|
|
};
|