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,