Skip to content

Commit 8e5f1bb

Browse files
Masatoshi OgiwaraMasatoshi Ogiwara
authored andcommitted
feat: add-rules-to-rector
1 parent e6de900 commit 8e5f1bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
66
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
77
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
8+
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
89
use Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector;
910

1011
return RectorConfig::configure()
@@ -16,6 +17,9 @@
1617
])
1718
->withPhpSets()
1819
->withTypeCoverageLevel(0)
20+
->withRules([
21+
ExplicitNullableParamTypeRector::class,
22+
])
1923
->withSkip([
2024
RemoveExtraParametersRector::class,
2125
ClosureToArrowFunctionRector::class,

0 commit comments

Comments
 (0)