Skip to content

Dead catch - UnhandledMatchError is never thrown in the try block. #6115

@jaras2678

Description

@jaras2678

Bug report

PHPStan, doesn't recognize the try catch block on the match expression

Code snippet that reproduces the problem

https://phpstan.org/r/9180d764-313c-48af-9c8f-f417a1b0a145

Expected output

No errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions