-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
minor: TrailingCommaInMultilineFixer - Add comma to multiline new static
#6380
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
minor: TrailingCommaInMultilineFixer - Add comma to multiline new static
#6380
Conversation
|
Using |
kubawerlos
left a comment
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.
@dpi nice catch, can you add some test to prevent regression?
new staticnew static
|
(my approval is subject to tests being added) |
|
Tests are in |
|
@dpi thanks so much for adding the tests! The PR looks better and better. Currently the CI fails because of the CS of the changes, can you run the fixer itself on its code and have a look at the changes? |
|
lint changed, its not clear to me how to get the other tests to run? |
|
seems your PR got hit by symfony/symfony#45361 , which is not related to your changes, so this CI failure doesn't need to be fixed in your PR |
|
Huzzah! |
d60786b to
0615210
Compare
new staticnew static
|
Thank you @dpi. |
Trailing comma is not added to multi-line function invocations In code such as.
I expect a comma to be added directly after 'bar', such that code becomes: