Skip to content

Commit fb1218d

Browse files
authored
Remove NullToStrictStringFuncCallArgRector from the PHP 8.1 set (#8234)
1 parent ab27b92 commit fb1218d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎config/set/php81.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
1212
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
1313
use Rector\Php81\Rector\FuncCall\NullToStrictIntPregSlitFuncCallLimitArgRector;
14-
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
1514
use Rector\Php81\Rector\MethodCall\MyCLabsMethodCallToEnumConstRector;
1615
use Rector\Php81\Rector\MethodCall\RemoveReflectionSetAccessibleCallsRector;
1716
use Rector\Php81\Rector\MethodCall\SpatieEnumMethodCallToEnumConstRector;
@@ -28,7 +27,6 @@
2827
ReadOnlyPropertyRector::class,
2928
SpatieEnumClassToEnumRector::class,
3029
SpatieEnumMethodCallToEnumConstRector::class,
31-
NullToStrictStringFuncCallArgRector::class,
3230
NullToStrictIntPregSlitFuncCallLimitArgRector::class,
3331

3432
ArrayToFirstClassCallableRector::class,

‎phpstan.neon‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ parameters:
117117
- src/Console/Notifier.php
118118
- src/Util/FileHasher.php
119119

120+
# deliberately kept out of the php81 set, as it fires too often to be applied by default;
121+
# it stays available to register directly with withRules()
122+
-
123+
identifier: rector.upgradeDowngradeRegisteredInSet
124+
path: rules/Php81/Rector/FuncCall/NullToStrictStringFuncCallArgRector.php
125+
120126
# is nested expr
121127
-
122128
message: '#Access to an undefined property PhpParser\\Node\\Expr\:\:\$expr#'

0 commit comments

Comments
 (0)