Skip to content

[Transform] Deprecate StringToClassConstantRector as niche, never used and needs context - #8779

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-string-to-class-constant
Oct 22, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-string-to-class-constant

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. The StringToClassConstant value object stays (marked @api) so existing user configs keep parsing.

Write a custom rule for the exact project case instead.

@TomasVotruba
TomasVotruba force-pushed the tv-deprecate-string-to-class-constant branch from 656a0a3 to d7d5db3 Compare October 22, 2026 20:26
@TomasVotruba
TomasVotruba force-pushed the tv-deprecate-string-to-class-constant branch from d7d5db3 to 5f887b6 Compare October 22, 2026 20:43
@TomasVotruba
TomasVotruba merged commit 90c7575 into main Oct 22, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-string-to-class-constant branch October 22, 2026 20:45
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