Skip to content

Traits with aliased methods filling in parent class abstract methods FP #3469

@dktapps

Description

@dktapps

Bug report

276afa3

This is in the same vein as #3406, but instead occurs when the abstract method comes from a grandparent class instead of the parent.

Code snippet that reproduces the problem

I've put together a sample repository here with a README: https://github.com/dktapps/phpstan-traits-abstract-bug-test

alternatively, here's a phpstan.org snippet: https://phpstan.org/r/81de903f-e93c-4b49-896a-757e67d793e7

Expected output

No error should be reported.

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