Skip to content

Match expression does not handle remaining value: with finite known abstract class #9010

@bendavies

Description

@bendavies

Bug report

The list of values possible here is known, so I think this error can be avoided.

Code snippet that reproduces the problem

https://phpstan.org/r/8df4601c-f29b-4187-b58c-8f7480a54e57

Expected output

No errors

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