Skip to content

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

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-simplify-strpos-lower
Oct 10, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
deprecate-simplify-strpos-lower

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Deprecates SimplifyStrposLowerRector.

The rule rewrites strpos(strtolower($var), '...') to stripos($var, '...'). This is a very niche micro-optimization, not part of any PHP upgrade path, and may be desired to split out. Following the same retirement as SetTypeToCastRector:

  • implements DeprecatedInterface + @deprecated docblock
  • body gutted, refactor() throws ShouldNotHappenException
  • test directory removed
  • unregistered from CodeQualityLevel

@TomasVotruba
TomasVotruba force-pushed the deprecate-simplify-strpos-lower branch from 91c43e6 to 3cf6a9e Compare October 10, 2026 22:57
@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 10, 2026 22:57
@TomasVotruba
TomasVotruba merged commit a923713 into main Oct 10, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-simplify-strpos-lower branch October 10, 2026 22:58
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