Skip to content

Override return type is detected as mixed #4003

@snapshotpl

Description

@snapshotpl

Code snippet that reproduces the problem

https://phpstan.org/r/713b8d71-3f1c-4048-b75c-4eee71ed309f

Expected output

Return type (string) of method Baz::foo() should be compatible with return type (int) of method Boo::foo()

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