File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33declare (strict_types=1 );
44
55use Rector \Config \RectorConfig ;
6- use Rector \Php84 \Rector \Class_ \DeprecatedAnnotationToDeprecatedAttributeRector ;
76use Rector \Php84 \Rector \Foreach_ \ForeachToArrayAllRector ;
87use Rector \Php84 \Rector \Foreach_ \ForeachToArrayAnyRector ;
98use Rector \Php84 \Rector \Foreach_ \ForeachToArrayFindKeyRector ;
1918 RoundingModeEnumRector::class,
2019 AddEscapeArgumentRector::class,
2120 NewMethodCallWithoutParenthesesRector::class,
22- DeprecatedAnnotationToDeprecatedAttributeRector::class,
2321 ForeachToArrayFindRector::class,
2422 ForeachToArrayFindKeyRector::class,
2523 ForeachToArrayAllRector::class,
Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ parameters:
123123 identifier : rector.upgradeDowngradeRegisteredInSet
124124 path : rules/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector.php
125125
126+ # deliberately kept out of the php84 set, as it turns a doc annotation into a runtime deprecation;
127+ # it stays available to register directly with withRules()
128+ -
129+ identifier : rector.upgradeDowngradeRegisteredInSet
130+ path : rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php
131+
126132 # is nested expr
127133 -
128134 message : ' #Access to an undefined property PhpParser\\Node\\Expr\:\:\$expr#'
You can’t perform that action at this time.
0 commit comments