mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
9a2931cbe4
bdc2fc9963
[NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
22 lines
1.4 KiB
PHP
22 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202306;
|
|
|
|
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\FuncCall\Php81ResourceReturnToObjectRector;
|
|
use Rector\Php81\Rector\FunctionLike\IntersectionTypesRector;
|
|
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, Php81ResourceReturnToObjectRector::class, NewInInitializerRector::class, IntersectionTypesRector::class, NullToStrictStringFuncCallArgRector::class, FirstClassCallableRector::class, ReturnNeverTypeRector::class]);
|
|
};
|