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; }