We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c1c8b commit 03088faCopy full SHA for 03088fa
1 file changed
src/Configuration/RectorConfigBuilder.php
@@ -787,7 +787,12 @@ public function withRules(array $rules): self
787
$this->rules = array_merge($this->rules, $rules);
788
789
// log all explicitly registered rules
790
- SimpleParameterProvider::addParameter(Option::ROOT_STANDALONE_REGISTERED_RULES, $rules);
+ // we only check the non-configurable rules, as the configurable ones might override them
791
+ $nonConfigurableRules = array_filter(
792
+ $rules,
793
+ fn (string $rule): bool => ! is_a($rule, ConfigurableRectorInterface::class)
794
+ );
795
+ SimpleParameterProvider::addParameter(Option::ROOT_STANDALONE_REGISTERED_RULES, $nonConfigurableRules);
796
797
return $this;
798
}
0 commit comments