Skip to content

[Removing] Deprecate RemoveTraitUseRector as niche, never used and needs context - #8778

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-remove-trait-use
Oct 22, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-remove-trait-use

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

This rule is too niche, never used in practice and needs project-specific context to configure. It is not part of any rector-src set.

Following the deprecation pattern: marks the rule @deprecated + DeprecatedInterface, guts the body to throw, removes its tests, drops its now-unmatched rector.registerRector ignore from phpstan.neon.

Write a custom rule for the exact project case instead.

@TomasVotruba
TomasVotruba force-pushed the tv-deprecate-remove-trait-use branch from c0838d8 to 25da8c2 Compare October 22, 2026 20:26
@TomasVotruba
TomasVotruba merged commit 7f0a3bf into main Oct 22, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-remove-trait-use branch October 22, 2026 20:43
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.

1 participant