Skip to content

[CodeQuality] Deprecate SetTypeToCastRector as niche rule, not part of PHP upgrade path - #8610

Merged
TomasVotruba merged 2 commits into
mainfrom
deprecate-set-type-to-cast
Oct 10, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
deprecate-set-type-to-cast

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

settype() is a niche function that is not part of the PHP upgrade path. Deprecate SetTypeToCastRector following the standard retirement flow:

  • mark implements DeprecatedInterface + @deprecated, refactor() throws
  • unregister from CodeQualityLevel::RULES
  • remove the rule test directory

@TomasVotruba
TomasVotruba merged commit 620a489 into main Oct 10, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-set-type-to-cast branch October 10, 2026 22:56
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