Skip to content

Rector stuck in infinite loop and creating invalid code #7713

@kkmuffme

Description

@kkmuffme

Bug Report

Subject Details
Rector version v0.15.4

Minimal PHP Code Causing Issue

https://getrector.org/demo/80548439-c8f1-4d50-9722-5710aedeedc8

Expected Behaviour

Don't get stuck in inifinite loop.

When you check the code/file psalm creates, you see there are 100s of return ''; added there before it times out.

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