Skip to content

CollectionPersister param type error #2796

@GromNaN

Description

@GromNaN

PHPStan reports a legitimate type error when passing a Collection to the CollectionPersister.

I added the error the baseline for the time being: f66e9e4

It seems that the CollectionPersister is only able to handle list of PersistentCollectionInterface while field properties are usually using array|Collection type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions