Skip to content

Deprecated ReturnTypeWillChangeRector should be reinstated as a downgrade rule #9515

@TobiasBg

Description

@TobiasBg

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 rectorphp/rector-src#7570 (comment) for details and an example.

Expected Behaviour

The ReturnTypeWillChangeRector functionality should be reinstated as a downgrade rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions