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

Skip to content

Fix rules according to the current release process #12047

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

Closed
wants to merge 1 commit into from
Closed

Fix rules according to the current release process #12047

wants to merge 1 commit into from

Conversation

funivan
Copy link

@funivan funivan commented Jul 29, 2019

I read rules and think that I can extend non-internal classes and not test classes.
Only security fixes can cause BC.
But this PR symfony/symfony#20487 is not Security fix and break my code.

I extended ProgressBar and didn't see any troubles. All works fine. After upgrade from 3.2 to 3.3 I got BC.
To avoid future troubles it is better to not extend classes. Developers should know that not only security fixes can break the code.

I read rules and think that I can extend non-internal classes and not test classes. 
Only security fixes can cause BC.
But this PR symfony/symfony#20487 is not Security fix and break my code. 

I extended `ProgressBar` and didn't see any troubles. All works fine. After upgrade from 3.2 to 3.3 I got BC. 
To avoid future troubles it is better to not extend classes. Developers should know that not only security fixes can break the code.
@javiereguiluz
Copy link
Member

@funivan thanks for reporting this problem. I'm going to ask @nicolas-grekas to see if he can verify if this change is correct or if the reported issue was a one-time BC break needed for some reasons. Thanks.

@OskarStark
Copy link
Contributor

I agree with you, to me its a BC break. Making a class final in a minor is a no-go.

But I don't agree with your change in the docs, because of this merged PR.

Lets see what the others think

@nicolas-grekas
Copy link
Member

This is wrong. I don't know why we merged that PR then, but merging this policy change is certainly not the correct thing to do.

@javiereguiluz
Copy link
Member

@funivan I'm sorry you faced this issue when upgrading to Symfony 3.3. Maybe it was some oversight on our side? In any case, the policy explained in the docs is still active and we try hard to comply with it. So, that's why we're closing this without merging. Thanks.

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.

5 participants