-
Notifications
You must be signed in to change notification settings - Fork 51
Apply fixes on 5.x #106
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
Apply fixes on 5.x #106
Conversation
Applying the fixes to the configuration.
PHPCBF is adding two commas when fixing missing trailing commas on associative arrays.
This is already solved by SlevomatCodingStandard.Arrays.TrailingArrayComma.MissingTrailingComma. More info: slevomat/coding-standard#490
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.
Since the tests for fixes changes, this would be a BC break for downstream projects using doctrine/coding-standard
. I'm 👎 on this. Yes, it is a fix, but it will just lead to consumers to swear at us for having to change stuff.
Let's push it to the next major, please.
@Ocramius there's no BC break here (you can even see that build on 5.x is broken: https://travis-ci.org/doctrine/coding-standard/branches).... The tests were wrong in the first place, consumers are already swearing due to wrong fixes of associative arrays. |
I agree with the associative arrays scenario, not with the annotations one |
@Ocramius check my last edit... that commit is only being applied because 5.x is currently broken on CI. |
@lcobucci wait, |
Should we therefore start pinning upstream dependencies to patch releases? It seems to me that Slevomat CS is not stable enough, since these are indeed perceived as BC breaks downstream. |
I think that it might create more issues for us... more releases to be made once we verified that their patches are reliable. Things look relatively stable so I'm not sure if we'd have much benefit too. I've added |
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.
Fair enough then, but if we see more upstream misbehavior, we must lock upstream deps on our end, as they very much affect consumers.
@Ocramius agreed 👍 |
Backporting these:
I'm considering the dependency upgrade as a fix here since composer commands sometimes were failing and seems to be solved.