Skip to content

Add return types to PersistentCollectionTrait #2850

@GromNaN

Description

@GromNaN

Feature Request

Q A
New Feature no
RFC no
BC Break yes

Summary

The next major version of doctrine/collection will add return types to the interface methods. We need to add this return types in the trait and the generated collection code in order to support it.

Also, the trait should be @internal and the generated collection classes @final. For now, this need to be done in a BC compatible way.

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