Skip to content

MethodSignatureMismatch suggests docblock-like type instead of native type hint type #11686

@kkmuffme

Description

@kkmuffme

https://psalm.dev/r/36d9734244

Got

Argument 1 of Y::run has wrong type 'array<array-key, mixed>', expecting 'array<array-key, mixed>|string' as defined by X::run

Expected

Argument 1 of Y::run has wrong type 'array', expecting 'array|string' as defined by X::run

Also the error message is a bit too restrictive - since it expects that type or a covariant/contravariant type of it

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