Skip to content

False positive NonInvariantDocblockPropertyType with template. #5371

@AndrolGenhald

Description

@AndrolGenhald

I have an abstract ItemCollection that can hold abstract Items, and a concrete FooCollection that holds concrete Foo items. When I redeclare the $items property in FooCollection it gives a NonInvariantDocblockPropertyType false positive even though it's using Foo for the template.

https://psalm.dev/r/d84346cfe5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions