Skip to content

[CodingStyle] Deprecate PostIncDecToPreIncDecRector - #8583

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-deprecate-post-inc-dec
Oct 10, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
tv-deprecate-post-inc-dec

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Deprecate PostIncDecToPreIncDecRector.

It swaps $value++ for ++$value, a cosmetic coding-style preference with little practical value. This kind of normalization fits a coding standard tool better than Rector.

  • Rule marked @deprecated and implements DeprecatedInterface; refactor() throws
  • Removed from config/set/rector-preset.php
  • Deleted the rule test directory

@TomasVotruba
TomasVotruba merged commit e9eee8d into main Oct 10, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-post-inc-dec branch October 10, 2026 09:10
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