Generic.Arrays.ArrayIndent behaving oddly #1084
Koopzington
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wasn't sure whether to open an issue about this or not but i just stumbled upon the following:
The sniff would say "Closing brace of array declaration must be on a new line" and after running
phpcbf
the code would look like:I think I'm not the only one that wouldn't keep the result like this and am now wondering whether the sniff should accept the original code as passable or whether the fixing algorithm should be modified to turn the original code into:
Personally I'd prefer the sniff to accept the original code as-is since it's also conforming to PSR-12. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions