Skip to content

[dx] Deprecate ShortenElseIfRector - #8416

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-shorten-else-if-rector
Aug 30, 2026
Merged

[dx] Deprecate ShortenElseIfRector#8416
TomasVotruba merged 1 commit into
mainfrom
deprecate-shorten-else-if-rector

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Aug 30, 2026

Copy link
Copy Markdown
Member

Deprecate ShortenElseIfRector.

Merging else/if into elseif creates less readable code and breaks the logical reading of the if train.

Follows the same retirement pattern as the recent deprecations:

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

…tes less readable code and breaks logical reading of the if train

Claude-Session: https://claude.ai/code/session_01FLhnMwgwtdvbYJRh9S72UW
@TomasVotruba
TomasVotruba merged commit 3bac42e into main Aug 30, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-shorten-else-if-rector branch August 30, 2026 07:39
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