Skip to content

Returning generic static in interface causes implementing class private method calls to return method.notFound #11398

@Indeedornot

Description

@Indeedornot

Bug report

Class implementing a generic interface which defines methods returning static cause method chained calls to methods only defined on the class to return method.notFound

Code snippet that reproduces the problem

https://phpstan.org/r/8f38f139-9337-4269-9de0-5638a80c734e

Expected output

Lack of an error or a way to a way to specify return type in place of static

Did PHPStan help you today? Did it make you happy in any way?

No response

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