-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Deprecations #4535
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
Deprecations #4535
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Would it be possible to rebase the "Housekeeping: psalm" commit and address these issues by those commits that introduce them? Otherwise, we'll have a broken state in between.
I have updated 5d20e3c for the |
doctrine/deprecations#4 doesn't look like a proper solution to the problem. It shouldn't be necessary for a library to suppress its own calls to its own deprecated APIs. In fact, not calling a certain method because it's deprecated may be a BC break on its own because somebody may have extended/implemented this method, and their extension is no longer effective. So not reporting deprecated calls within the library should be the default behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i went over each call again and converted quite a few back to using
trigger
.
That's quite a few but I think we can do better. Please see the comments.
Failure is fixed in deprecatios 0.5.3 but i cannot retrigger the appveyor build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure is fixed in deprecatios 0.5.3 but i cannot retrigger the appveyor build.
It warrants a bump of the Deprecations version.
Looks good! Just needs the changes in the last few commits moved under the corresponding original commits.
…iresQueryForServerVersion
…ect/groupBy/addGroupBy with array argument.
Turns all the possible deprecated APIs into using the doctrine/deprecations API.
This includes deprecations on everything that can be done with code at runtime and is missing only the deprecation of
fetch
methods on theStatement
class, which need this PR #4529 for forwards compatibility to suggest a migration fromStatement::fetch*
toConnection::executeQuery->fetch*()