diff --git a/rector.php b/rector.php index fd6120e10..47b7a8886 100644 --- a/rector.php +++ b/rector.php @@ -1,5 +1,7 @@ withSets([ SetList::DEAD_CODE, - LevelSetList::UP_TO_PHP_81 + LevelSetList::UP_TO_PHP_81, + SetList::CODE_QUALITY, ]) ->withSkip([ __DIR__ . '/lam/lib/3rdParty', @@ -30,6 +33,8 @@ return RectorConfig::configure() StaticCallOnNonStaticToInstanceCallRector::class, StringifyStrNeedlesRector::class, RestoreDefaultNullToNullableTypePropertyRector::class, + ForRepeatedCountToOwnVariableRector::class, + SimplifyEmptyCheckOnEmptyArrayRector::class ]) ->withFileExtensions([ 'php',