Skip to content

Commit

Permalink
Fix: Account for configurable fixers with deprecated configuration op…
Browse files Browse the repository at this point in the history
…tions only
  • Loading branch information
localheinz committed Mar 18, 2024
1 parent 7f920f9 commit 8abdaa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/ExplicitRuleSetTestCase.php
Expand Up @@ -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();
Expand Down

0 comments on commit 8abdaa1

Please sign in to comment.