Skip to content

Collection expects empty, something provided #2771

@orklah

Description

@orklah

Hi,

For this example:
https://psalm.dev/r/05f878620a

Psalm tells me that it doesn't understand the type of the Collection's generic but I can't understant why or what I should do to fix it.

If I mess with the content of __construct, the error disappear. If I drop the foreach in setArguments, it disappear. I don't know what causes it...

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions