Skip to content

[Transform] Deprecate NewToStaticCallRector as too niche and requiring careful context - #8768

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-new-to-static-call
Oct 22, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-new-to-static-call

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

NewToStaticCallRector is too niche, never used in practice, and requires careful context to map a new to the correct static call. Deprecated in favor of writing a custom rule for the exact project case.

Follows the retirement pattern: gut the body to throw, drop the NewToStaticCall value object and the test directory.

@TomasVotruba
TomasVotruba merged commit 34ee695 into main Oct 22, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-new-to-static-call branch October 22, 2026 11:12
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