Skip to content

@throws defined in parent class must not be checked if thrown #13671

@mvorisek

Description

@mvorisek

Bug report

Broken since the last/2.1.31 release.

In the repro, the StreamInterface is defined in 3rd partyclass. In the child/our class, the @throws must not be checked.

Code snippet that reproduces the problem

https://phpstan.org/r/27528123-d51b-4dca-9ef7-f7bd6681c4a7

Expected output

no phpstan error

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