diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index 13e5e3b2512..1012a83daf4 100644 --- a/src/Configuration/RectorConfigBuilder.php +++ b/src/Configuration/RectorConfigBuilder.php @@ -768,6 +768,7 @@ public function withPreparedSets( bool $doctrineCodeQuality = false, bool $symfonyCodeQuality = false, bool $symfonyConfigs = false, + bool $all = false, ): self { Notifier::notifyNotSuitableMethodForPHP74(__METHOD__); @@ -790,6 +791,11 @@ public function withPreparedSets( SymfonySetList::CONFIGS => $symfonyConfigs, ]; + if ($all) { + $this->sets = array_unique(array_merge($this->sets, array_keys($setMap))); + return $this; + } + foreach ($setMap as $setPath => $isEnabled) { if ($isEnabled) { $this->sets[] = $setPath;