Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Postpone Range BC layer removal to 6.0. #37821

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

Conversation

l-vo
Copy link
Contributor

@l-vo l-vo commented Aug 13, 2020

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

This BC layer triggers a deprecation message when using minMessage/maxMessage and min and max are both set.
Since users on 5.0 and 5.1 hasn't have the deprecation, removing the BC layer (and so throwing an exception) in 5.x would be a big BC break.

Also updated trigger_error to trigger_deprecation and @deprecationMessage to ExpectDeprecationTrait::expectDeprecation.

@l-vo l-vo force-pushed the notInRangeMessage_bclayer_removal_postponed_to_6.0 branch from fa0aa5a to d3a0888 Compare August 13, 2020 07:39
@fabpot
Copy link
Member

fabpot commented Aug 13, 2020

@l-vo Tests fail

@l-vo l-vo force-pushed the notInRangeMessage_bclayer_removal_postponed_to_6.0 branch from d3a0888 to 5400e02 Compare August 13, 2020 08:17
@l-vo
Copy link
Contributor Author

l-vo commented Aug 13, 2020

@fabpot my bad, I forgot to add the symfony/contracts-deprecation dependency. It's ok now.

Since users on 5.0 and 5.1 hasn't have the deprecation, removing the BC layer (and so throwing an exception) in 5.x would be a big BC break.
@l-vo l-vo force-pushed the notInRangeMessage_bclayer_removal_postponed_to_6.0 branch from 5400e02 to 1f66618 Compare August 13, 2020 08:39
@fabpot
Copy link
Member

fabpot commented Aug 13, 2020

Thank you @l-vo.

@fabpot fabpot merged commit 8ca1bac into symfony:5.1 Aug 13, 2020
@l-vo l-vo deleted the notInRangeMessage_bclayer_removal_postponed_to_6.0 branch August 13, 2020 09:11
@fabpot fabpot mentioned this pull request Aug 31, 2020
@xabbuh xabbuh added this to the 5.1 milestone Aug 31, 2020
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.

4 participants