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

Use symfony/deprecation-contracts to announce deprecations in code #2249

Merged
merged 3 commits into from
Nov 27, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Nov 26, 2020

Q A
Type improvement
BC Break no

Summary

This replaces manual calls to @trigger_error with trigger_deprecation from the symfony/deprecation-contracts package. This allows users to override the trigger_deprecation function to implement their custom logic.

Note that this PR drops deprecation functionality for field mapping annotations that were supposed to be dropped in 2.0. Since these methods are marked @internal, I have no problem dropping them in a minor release.

@alcaeus alcaeus added this to the 2.2.0 milestone Nov 26, 2020
@alcaeus alcaeus requested a review from malarzm November 26, 2020 10:30
@alcaeus alcaeus self-assigned this Nov 26, 2020
@alcaeus alcaeus force-pushed the deprecation-contracts branch from c203c14 to dd8fb01 Compare November 27, 2020 07:37
@alcaeus alcaeus merged commit 3bdfe97 into doctrine:master Nov 27, 2020
@alcaeus alcaeus deleted the deprecation-contracts branch November 27, 2020 08:44
Copy link
Member

@malarzm malarzm left a comment

Choose a reason for hiding this comment

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

Definitely late to the party, but thanks for the change 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants