Skip to content

TypeDoesNotContainType - list<Foo> does not contain iterable<mixed, ExpectedType:fn-assert::allisinstanceof as Foo> #5406

@bendavies

Description

@bendavies

Hi,

The following previously worked on 4.6.1. It seems psalm doesn't now like mixing the list and iterable types.
Is this now valid error?

https://psalm.dev/r/b8e4a1af20

Thanks

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