From 66dcc2ecedde5e8b210d6569679e53c668058a79 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 6 Dec 2024 20:35:14 +0100 Subject: [PATCH] refactoring --- rector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 47b7a8886..d701f1146 100644 --- a/rector.php +++ b/rector.php @@ -11,6 +11,7 @@ use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; +use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; return RectorConfig::configure() ->withParallel(240, 8) @@ -34,7 +35,8 @@ return RectorConfig::configure() StringifyStrNeedlesRector::class, RestoreDefaultNullToNullableTypePropertyRector::class, ForRepeatedCountToOwnVariableRector::class, - SimplifyEmptyCheckOnEmptyArrayRector::class + SimplifyEmptyCheckOnEmptyArrayRector::class, + DisallowedEmptyRuleFixerRector::class ]) ->withFileExtensions([ 'php',