Skip to content

Infer return type from $this #8067

@staabm

Description

@staabm

Feature Request

I would expect one of the rules out of SetList::TYPE_DECLARATION would infer a return type when a method returns just $this.

https://getrector.com/demo/84754cac-d24e-4286-a8ee-370c4a87d5a7

is this missing from one of the rectors, or is this something achieved by a different rector? I couldn't find one, even in other sets

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