Skip to content

should return array<T of Foo> but returns array<T of Foo> #7460

@VincentLanglet

Description

@VincentLanglet

Bug report

Hi @ondrejmirtes, I'm getting an error that I don't understand at all
https://phpstan.org/r/1aa2d004-995a-4677-973e-17068b828291

I don't know if it's related but I can also produce another weird error with
https://phpstan.org/r/c74a81ae-f8ab-48e1-8bc4-62a2c02e8613

"expects T of Foo, got T of Foo".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions