Skip to content

Static method should return static(X) but returns X. #4648

@MetalArend

Description

@MetalArend

Bug report

I saw issue #2885, and updated to the latest version 0.12.80. But the issue remained.

Code snippet that reproduces the problem

https://phpstan.org/r/c64505e0-5173-424a-a5da-1f8ca503997a

Expected output

The output is Method ClassImplementation::convert() should return static(ClassImplementation) but returns ClassImplementation.. Afaik the implementation should be completely acceptable. It looks a lot like issue #2885, maybe it has something to do with the method being?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions