Skip to content

False positive when reporting dead types in multi-exception catch #9406

@Federkun

Description

@Federkun

Bug report

Likely something following phpstan/phpstan-src#2399, getting false positive after upgrading - only catch with multiple exception are affected.

Code snippet that reproduces the problem

https://phpstan.org/r/a6ba1c57-c957-4040-bb45-7a749eaf03a9

Expected output

Expected 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