Skip to content

Commit c87f102

Browse files
committed
temporary skip non finalize public class constant rector
1 parent d0f7391 commit c87f102

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

rector.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@
1515
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
1616
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
1717
use Rector\Php81\Rector\ClassConst\FinalizePublicClassConstantRector;
18+
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
19+
use Rector\Php81\Rector\FuncCall\Php81ResourceReturnToObjectRector;
20+
use Rector\Php81\Rector\FunctionLike\IntersectionTypesRector;
21+
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
22+
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
1823
use Rector\PHPUnit\Set\PHPUnitSetList;
1924
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;
2025
use Rector\Set\ValueObject\LevelSetList;
2126
use Rector\Set\ValueObject\SetList;
27+
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
2228
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
2329

2430
return static function (ContainerConfigurator $containerConfigurator): void {
2531
// include the latest PHP version + all bellow in one config!
26-
$containerConfigurator->import(LevelSetList::UP_TO_PHP_80);
32+
$containerConfigurator->import(LevelSetList::UP_TO_PHP_81);
2733

2834
// include sets
2935
$containerConfigurator->import(SetList::CODING_STYLE);
@@ -87,6 +93,14 @@
8793
// @todo remove when enabling it on different PR
8894
ArraySpreadInsteadOfArrayMergeRector::class,
8995

96+
// temporary skip non finalize public class constant rector
97+
ReturnNeverTypeRector::class,
98+
MyCLabsMethodCallToEnumConstRector::class,
99+
ReadOnlyPropertyRector::class,
100+
Php81ResourceReturnToObjectRector::class,
101+
NewInInitializerRector::class,
102+
IntersectionTypesRector::class,
103+
90104
// test paths
91105
'*/tests/**/Fixture/*',
92106
'*/rules-tests/**/Fixture/*',

0 commit comments

Comments
 (0)