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)
20 lines
1.2 KiB
PHP
20 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202401;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
|
|
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
|
|
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
|
|
use Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
|
|
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
|
|
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
|
|
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
|
|
use Rector\Php81\Rector\MethodCall\SpatieEnumMethodCallToEnumConstRector;
|
|
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rules([ReturnNeverTypeRector::class, MyCLabsClassToEnumRector::class, MyCLabsMethodCallToEnumConstRector::class, FinalizePublicClassConstantRector::class, ReadOnlyPropertyRector::class, SpatieEnumClassToEnumRector::class, SpatieEnumMethodCallToEnumConstRector::class, NewInInitializerRector::class, NullToStrictStringFuncCallArgRector::class, FirstClassCallableRector::class]);
|
|
};
|