Skip to content

Inline rule identifier constants into each rule - #348

Merged
TomasVotruba merged 1 commit into
mainfrom
inline-rule-identifiers
Oct 9, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
inline-rule-identifiers

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Inline the string identifier from the central RuleIdentifier classes directly into each rule.

Each rule now passes its ->identifier('...') string literal inline instead of referencing a shared constant. Removes the 5 central identifier classes:

  • RuleIdentifier
  • DoctrineRuleIdentifier
  • PHPUnitRuleIdentifier
  • RectorRuleIdentifier
  • SymfonyRuleIdentifier

104 rule files updated, identifier classes deleted. No behavior change - identifier strings are identical.

@TomasVotruba
TomasVotruba merged commit 5514612 into main Oct 9, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the inline-rule-identifiers branch October 9, 2026 21:24
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