Method chaining and commas in arrays #7877
julienfalque
started this conversation in
Feature ideas
Replies: 1 comment 1 reply
-
I would expect this to be a feature request, it seems pretty similar to the There is a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I sometimes use method chaining inside arrays. In such case, I move the comma on the next line for readability like I do with semicolons outside of arrays. When applying
no_whitespace_before_comma_in_array
rule, the comma is moved next to the last closing parenthesis:I would like the fixer to not move the comma when it is on a new line like in this example. Do you think it makes sense? If yes, do you consider this a bugfix or a feature request (so probably with a new configuration option to enable this behavior)?
Beta Was this translation helpful? Give feedback.
All reactions