From 8abdaa1fab8a2ed240905d5d329a947fc66fb36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 18 Mar 2024 22:44:53 +0100 Subject: [PATCH] Fix: Account for configurable fixers with deprecated configuration options only --- test/Unit/RuleSet/ExplicitRuleSetTestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Unit/RuleSet/ExplicitRuleSetTestCase.php b/test/Unit/RuleSet/ExplicitRuleSetTestCase.php index 413713e1..73f9de32 100644 --- a/test/Unit/RuleSet/ExplicitRuleSetTestCase.php +++ b/test/Unit/RuleSet/ExplicitRuleSetTestCase.php @@ -101,6 +101,10 @@ final public function testRuleSetConfiguresAllRulesThatAreConfigurableAndNotDepr return !$fixerOption instanceof FixerConfiguration\DeprecatedFixerOptionInterface; }); + if ([] === $nonDeprecatedConfigurationOptions) { + return true; + } + $ruleConfigurationWithAllNonDeprecatedConfigurationOptionsAndDefaultValues = \array_combine( \array_map(static function (FixerConfiguration\FixerOptionInterface $fixerOption): string { return $fixerOption->getName();