Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 153fc78

Browse files
committed
register NewInInitializerRector in PHP 8.1
1 parent 1ae7187 commit 153fc78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/set/php81.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
99
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
1010
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
11+
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
1112
use Rector\Php81\Rector\FuncCall\NullToStrictIntPregSlitFuncCallLimitArgRector;
1213
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
1314
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
@@ -34,5 +35,7 @@
3435
FunctionLikeToFirstClassCallableRector::class,
3536
ClosureFromCallableToFirstClassCallableRector::class,
3637
RemoveReflectionSetAccessibleCallsRector::class,
38+
39+
NewInInitializerRector::class,
3740
]);
3841
};

0 commit comments

Comments
 (0)