Skip to content

Commit 4c6979e

Browse files
committed
Add parameter to withPreparedSets() to include all SetList
1 parent 47693a2 commit 4c6979e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Configuration/RectorConfigBuilder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ public function withPreparedSets(
768768
bool $doctrineCodeQuality = false,
769769
bool $symfonyCodeQuality = false,
770770
bool $symfonyConfigs = false,
771+
bool $all = false,
771772
): self {
772773
Notifier::notifyNotSuitableMethodForPHP74(__METHOD__);
773774

@@ -790,6 +791,11 @@ public function withPreparedSets(
790791
SymfonySetList::CONFIGS => $symfonyConfigs,
791792
];
792793

794+
if ($all) {
795+
$this->sets = array_keys($setMap);
796+
return $this;
797+
}
798+
793799
foreach ($setMap as $setPath => $isEnabled) {
794800
if ($isEnabled) {
795801
$this->sets[] = $setPath;

0 commit comments

Comments
 (0)