Skip to content

Enum::from(value-of<Enum>) should not throw an error #13297

@VincentLanglet

Description

@VincentLanglet

Bug report

All three catch should be considered as dead catch
https://phpstan.org/r/cdbfd1f0-0455-488d-8bc6-223eaba307a6

I'll try to look at this later.

Code snippet that reproduces the problem

https://phpstan.org/r/cdbfd1f0-0455-488d-8bc6-223eaba307a6

Expected output

3 dead catch.

Did PHPStan help you today? Did it make you happy in any way?

PHPStan is an awesome tool and I love working on the codebase.

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