diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index 18a288209fc..4df8adcf018 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::SYMFONY => $symfony, SetGroup::NETTE_UTILS => $netteUtils, SetGroup::LARAVEL => $laravel, SetGroup::DRUPAL => $drupal, @@ -756,6 +755,11 @@ public function withComposerBased( $this->sets[] = PHPUnitSetList::COMPOSER_BASED; } + if ($symfony) { + // single set, as every rule inside is bound to the installed Symfony package version on its own + $this->sets[] = SymfonySetList::COMPOSER_BASED; + } + return $this; }