Skip to content

multiple TypeDoesNotContainType errors with match on union of enums #11827

@jacekkarczmarczyk

Description

@jacekkarczmarczyk

https://psalm.dev/r/3906d0c921

Foo1 is 'one', Foo2 is 'one' or 'two', so (Foo1|Foo2)->value definitely can be 'one' or 'two'.

Errors are difference when the argument is nullable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions