Skip to content

Forbid deprecated rules in ECS sets - #334

Merged
TomasVotruba merged 1 commit into
mainfrom
forbid-deprecated-rules-in-sets
Nov 8, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
forbid-deprecated-rules-in-sets

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Adds a PHP test that fails if any ECS set registers a deprecated rule (DeprecatedFixerInterface fixer or DeprecatedSniff), iterating every SetList set.

The check surfaced 4 deprecated fixers already shipped in the sets; each is replaced with its successor:

  • NoUnneededCurlyBracesFixer -> NoUnneededBracesFixer (clean-code)
  • VisibilityRequiredFixer -> ModifierKeywordsFixer (psr12)
  • SingleBlankLineBeforeNamespaceFixer -> BlankLinesBeforeNamespaceFixer with min_line_breaks: 2, max_line_breaks: 2 (namespaces)
  • ParamReturnAndVarTagMalformsFixer -> its 10 successor commenting fixers (clean-code)

Each successor matches the deprecated proxy's configuration, so output is unchanged. Full test suite and lint pass.

@TomasVotruba
TomasVotruba merged commit c306d09 into main Nov 8, 2026
12 checks passed
@TomasVotruba
TomasVotruba deleted the forbid-deprecated-rules-in-sets branch November 8, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant