Skip to content

ForbidVariableTypeOverwritingRule error reported when overwriting with same type #347

@rdeago

Description

@rdeago

Apparently, ForbidVariableTypeOverwritingRule can get confused by fluent method chaining.

Image

All three methods called in the code above have @return $this in their docblock (which makes the assignment superfluous but still fully legitimate).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions