From d75d6815465744f84a3ed0e35d1f81f43a510d3e Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Fri, 27 Mar 2026 12:41:31 +0100 Subject: [PATCH 1/3] [TASK] Drop PHP version from rector configuration The PHP version is now derived directly from composer.json See https://getrector.com/documentation/php-version-features Relates: #2034 --- Build/rector/config.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Build/rector/config.php b/Build/rector/config.php index 1794970a..d091ad86 100644 --- a/Build/rector/config.php +++ b/Build/rector/config.php @@ -22,7 +22,6 @@ __DIR__ . '/../../ext_emconf.php', __DIR__ . '/../../ext_localconf.php', ]) - ->withPhpVersion(PhpVersion::PHP_81) ->withPhpSets() ->withSets([ // Rector sets From c0e09f3fdaf3b33f21b7929c24a43d8b88076f9f Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Fri, 27 Mar 2026 12:44:28 +0100 Subject: [PATCH 2/3] [TASK] Drop PHP level set from rector configuration The call to withPhpSets() without parameter already makes rector collect the correct PHP rule sets. No need to redundantly list them in withSets(). See https://getrector.com/documentation/set-lists#content-php-sets Relates: #2034 --- Build/rector/config.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Build/rector/config.php b/Build/rector/config.php index d091ad86..dfd0ed32 100644 --- a/Build/rector/config.php +++ b/Build/rector/config.php @@ -26,11 +26,6 @@ ->withSets([ // Rector sets - LevelSetList::UP_TO_PHP_81, - // LevelSetList::UP_TO_PHP_82, - // LevelSetList::UP_TO_PHP_83, - // LevelSetList::UP_TO_PHP_84, - // SetList::CODE_QUALITY, // SetList::CODING_STYLE, // SetList::DEAD_CODE, From 425426c603d5fad276469f276e1ef9ee48dec391 Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Sat, 28 Mar 2026 11:39:00 +0100 Subject: [PATCH 3/3] [TASK] Move PHPUnit sets to composer based sets Now PHPUnit rector sets are collected by the PHPUnit version defined in composer.json See https://getrector.com/documentation/composer-based-sets Relates: #2034 --- Build/rector/config.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Build/rector/config.php b/Build/rector/config.php index dfd0ed32..3b414059 100644 --- a/Build/rector/config.php +++ b/Build/rector/config.php @@ -23,6 +23,7 @@ __DIR__ . '/../../ext_localconf.php', ]) ->withPhpSets() + ->withComposerBased(phpunit: true) ->withSets([ // Rector sets @@ -36,12 +37,6 @@ // SetList::STRICT_BOOLEANS, // SetList::TYPE_DECLARATION, - // PHPUnit sets - - PHPUnitSetList::PHPUNIT_100, - // PHPUnitSetList::PHPUNIT_110, - // PHPUnitSetList::PHPUNIT_CODE_QUALITY, - // TYPO3 Sets // https://github.com/sabbelasichon/typo3-rector/blob/main/src/Set/Typo3LevelSetList.php // https://github.com/sabbelasichon/typo3-rector/blob/main/src/Set/Typo3SetList.php