Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning about potential signature incompatibility #2472

Merged

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Oct 2, 2022

No description provided.

@greg0ire greg0ire requested a review from malarzm October 2, 2022 15:36
UPGRADE-2.5.md Outdated
To comply with the new interface of `Collection` introduced in 2.0.0,
`findFirst()` and `reduce()` have been added to `PersistentCollectionTrait`.
Make sure to remove your own implementations of these methods if you have any
and are using that trait.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trait is used by ODM itself. New methods can collide with custom collection and signatures in them :)

@greg0ire greg0ire force-pushed the warn-about-signature-incompatibility branch from 5f175f8 to 304d777 Compare October 2, 2022 16:13
@malarzm malarzm merged commit a4e0748 into doctrine:2.5.x Oct 2, 2022
@malarzm
Copy link
Member

malarzm commented Oct 2, 2022

Thanks @greg0ire!

@malarzm malarzm added this to the 2.5.0 milestone Oct 2, 2022
@greg0ire greg0ire deleted the warn-about-signature-incompatibility branch October 2, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants