Skip to content

static on Interface false positive issue (return.phpDocType) #12485

@Rustroyan

Description

@Rustroyan

Bug report

PHPStan does not work correctly with static. We are getting a false positive. We checked in psalm there is no such error. https://psalm.dev/r/58edda177f

Code snippet that reproduces the problem

https://phpstan.org/r/75565c1d-affc-49ef-bce0-078f3e9eb5a2

Expected output

No errors

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