From 8e5f1bb29e901fb8382c36d86c483cea507b8ec5 Mon Sep 17 00:00:00 2001 From: Masatoshi Ogiwara Date: Mon, 4 Aug 2025 16:00:18 +0900 Subject: [PATCH] feat: add-rules-to-rector --- rector.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rector.php b/rector.php index 23afcb2ea..b52c278a0 100644 --- a/rector.php +++ b/rector.php @@ -5,6 +5,7 @@ use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\Php80\Rector\FunctionLike\MixedTypeRector; use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; +use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector; use Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector; return RectorConfig::configure() @@ -16,6 +17,9 @@ ]) ->withPhpSets() ->withTypeCoverageLevel(0) + ->withRules([ + ExplicitNullableParamTypeRector::class, + ]) ->withSkip([ RemoveExtraParametersRector::class, ClosureToArrowFunctionRector::class,