From 4c6979e3eb189b23ba33bfaf56c4a3af69b76c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20H=2E?= <36476318+Tamas-hi@users.noreply.github.com> Date: Fri, 10 Oct 2025 19:47:52 +0200 Subject: [PATCH 1/2] Add parameter to withPreparedSets() to include all SetList --- src/Configuration/RectorConfigBuilder.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index 13e5e3b2512..cc3306a663d 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_keys($setMap); + return $this; + } + foreach ($setMap as $setPath => $isEnabled) { if ($isEnabled) { $this->sets[] = $setPath; From c97f8796f11a48c4fd5591f2539e72f7fc5bae05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20H=2E?= <36476318+Tamas-hi@users.noreply.github.com> Date: Sat, 11 Oct 2025 07:37:27 +0200 Subject: [PATCH 2/2] Update src/Configuration/RectorConfigBuilder.php Merge all with existings sets Co-authored-by: Abdul Malik Ikhsan --- src/Configuration/RectorConfigBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index cc3306a663d..1012a83daf4 100644 --- a/src/Configuration/RectorConfigBuilder.php +++ b/src/Configuration/RectorConfigBuilder.php @@ -792,7 +792,7 @@ public function withPreparedSets( ]; if ($all) { - $this->sets = array_keys($setMap); + $this->sets = array_unique(array_merge($this->sets, array_keys($setMap))); return $this; }