Skip to content

Deprecate RemoveDeadReturnRector in favor of RemoveAlwaysTrueIfConditionRector - #8685

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-dead-return
Oct 17, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-deprecate-dead-return

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Deprecates RemoveDeadReturnRector in favor of RemoveAlwaysTrueIfConditionRector.

  • marks the rule with DeprecatedInterface + @deprecated docblock
  • guts refactor() to throw
  • drops the test directory
  • unregisters it from DeadCodeLevel

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 17, 2026 15:05
@TomasVotruba
TomasVotruba merged commit 90951da into main Oct 17, 2026
48 of 49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-deprecate-dead-return branch October 17, 2026 15:05
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