From 3811df56fe92c4851ac9550e85361145e3e02c0d Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 31 Jul 2026 23:47:35 +0200 Subject: [PATCH] [Configuration] Load single composer-based PHPUnit set in withComposerBased() --- src/Configuration/RectorConfigBuilder.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index 310e823e52e..18a288209fc 100644 --- a/src/Configuration/RectorConfigBuilder.php +++ b/src/Configuration/RectorConfigBuilder.php @@ -739,7 +739,6 @@ public function withComposerBased( $setMap = [ SetGroup::TWIG => $twig, SetGroup::DOCTRINE => $doctrine, - SetGroup::PHPUNIT => $phpunit, SetGroup::SYMFONY => $symfony, SetGroup::NETTE_UTILS => $netteUtils, SetGroup::LARAVEL => $laravel, @@ -752,6 +751,11 @@ public function withComposerBased( } } + if ($phpunit) { + // single set, as every rule inside is bound to the installed PHPUnit version on its own + $this->sets[] = PHPUnitSetList::COMPOSER_BASED; + } + return $this; }