Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[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

Merged
merged 1 commit into from
Dec 31, 2017

Conversation

romainneutron
Copy link
Contributor

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.

@romainneutron romainneutron added Bug DX DX = Developer eXperience (anything that improves the experience of using Symfony) labels Dec 20, 2017
@nicolas-grekas nicolas-grekas added this to the 2.7 milestone Dec 20, 2017
Copy link
Member

@nicolas-grekas nicolas-grekas left a 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 :)

Copy link
Member

@javiereguiluz javiereguiluz left a 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.

@stof
Copy link
Member

stof commented Dec 20, 2017

I agree that this makes the message easier to use.

@fabpot
Copy link
Member

fabpot commented Dec 31, 2017

Thank you @romainneutron.

@fabpot fabpot merged commit c2338cb into symfony:2.7 Dec 31, 2017
fabpot added a commit that referenced this pull request Dec 31, 2017
…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
fabpot added a commit that referenced this pull request Dec 31, 2017
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
@romainneutron romainneutron deleted the harmonize-deprecation-messages branch January 5, 2018 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug DX DX = Developer eXperience (anything that improves the experience of using Symfony) Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.