Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Configuration/RectorConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ public function withPreparedSets(
bool $doctrineCodeQuality = false,
bool $symfonyCodeQuality = false,
bool $symfonyConfigs = false,
bool $all = false,
): self {
Notifier::notifyNotSuitableMethodForPHP74(__METHOD__);

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

if ($all) {
$this->sets = array_keys($setMap);
Comment thread
Tamas-hi marked this conversation as resolved.
Outdated
return $this;
}

foreach ($setMap as $setPath => $isEnabled) {
if ($isEnabled) {
$this->sets[] = $setPath;
Expand Down