Skip to content

Non-abstract class contains abstract method bug #3411

@loevgaard

Description

@loevgaard

Bug report

I use this pattern where I use trait to include some functionality and to have autocompletion (and of course expected methods) in the trait I use abstract methods.

I then include these trait knowing that the abstract methods are implemented in parent classes.

This gives an errow now in phpstan.

Code snippet that reproduces the problem

https://phpstan.org/r/89a80bed-93d2-41f9-b802-a960216845f1

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