Skip to content

Dead catch is thrown in static methods  #4805

@tugmaks

Description

@tugmaks

Bug report

New dead catch feature in bleeding edge has strange behavior if analysing static methods

Code snippet that reproduces the problem

https://phpstan.org/r/9b143be6-fea0-4b50-a758-2104666a096c

Expected output

But if method is not static everything is correct
https://phpstan.org/r/7704783f-6275-4c31-b0f1-6777db44d0a0

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