-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.7][DX] Use constant message contextualisation for deprecations #25565
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
[2.7][DX] Use constant message contextualisation for deprecations #25565
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.
this will help other projects to do deprecations correctly (they need context) and may help devs also :)
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.
A simple change ... but super useful!! Thanks Romain.
I agree that this makes the message easier to use. |
Thank you @romainneutron. |
…recations (romainneutron) This PR was merged into the 2.7 branch. Discussion ---------- [2.7][DX] Use constant message contextualisation for deprecations | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes Since many projects are using this mechanism for deprecating feature, it is sometimes difficult to understand which vendor triggers a deprecation. Sometimes we're using `since Symfony x.y` format, sometimes we are using `since x.y`. I propose to always use `since Symfony x.y` format. Commits ------- c2338cb [2.7][DX] Use constant message contextualisation for deprecations
This PR was merged into the 2.7 branch. Discussion ---------- Fix some deprecation messages | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Some messages were forgotten in #25565 Commits ------- dc55456 fixed some deprecation messages
Since many projects are using this mechanism for deprecating feature, it is sometimes difficult to understand which vendor triggers a deprecation.
Sometimes we're using
since Symfony x.y
format, sometimes we are usingsince x.y
. I propose to always usesince Symfony x.y
format.