Skip to content

[Transform] Deprecate MethodCallToStaticCallRector as niche and context-dependent - #8770

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

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

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Turning a method call into a static call depends heavily on project context and this generic rule is too niche to apply safely across projects. Deprecate it; write a custom rule for the exact project case instead.

Follows the same path as the recently deprecated StaticCallToMethodCallRector (#8759).

  • rule gutted to throw via DeprecatedInterface, getRuleDefinition kept for docs
  • tests removed
  • MethodCallToStaticCall value object kept and marked @api (still used in config)

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