Skip to content

generic property false positive: LanguageProperty<list<string>>|null) does not accept LanguageProperty<array{string}> #15027

Description

@staabm

Bug report

I think array{string} is a list<string> and therefore shouldn't error like that

Code snippet that reproduces the problem

https://phpstan.org/r/857223eb-74dd-4193-a1ba-6a18c9823e02

Expected output

no error

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions