Skip to content

LessSpecificReturnStatement + MoreSpecificReturnType reported together #2875

@bendavies

Description

@bendavies

See: https://psalm.dev/r/4c0bab583c

If we change line 28 to
@return (T&Baz)|null
(switching Baz and T), then there are no errors.

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