Skip to content

[Transform] Deprecate MergeInterfacesRector as niche, context-dependent and never used - #8772

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-deprecate-merge-interfaces
Oct 22, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
tv-deprecate-merge-interfaces

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Merging interfaces depends on project-specific context and is rarely useful in a shared ruleset. Deprecate the rule and point users to a custom rule scoped to their exact case.

Follows the same pattern as the recent ConstFetchToClassConstFetchRector and ChangeConstantVisibilityRector deprecations:

  • implements DeprecatedInterface
  • refactor() throws ShouldNotHappenException
  • rule-specific tests removed

Not registered in any set, so no set changes needed.

@TomasVotruba
TomasVotruba merged commit 8bf6146 into main Oct 22, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-merge-interfaces branch October 22, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants