rector icon indicating copy to clipboard operation
rector copied to clipboard

Deprecated ReturnTypeWillChangeRector should be reinstated as a downgrade rule

Open TobiasBg opened this issue 3 months ago • 0 comments

Bug Report

Subject Details
Rector version 2.2.8

The deprecation of ReturnTypeWillChangeRector no longer leaves a way to add #[\ReturnTypeWillChange] in downgraded code.

See https://github.com/rectorphp/rector-src/pull/7570#issuecomment-3583247151 for details and an example.

Expected Behaviour

The ReturnTypeWillChangeRector functionality should be reinstated as a downgrade rule.

TobiasBg avatar Nov 27 '25 08:11 TobiasBg