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
operators_spaces brakes array double arrows #2151
Comments
ref: may or may not be connected with not-fully prepared report #2135 Please, provide CLI command you are using (with all args), config file and PHP version. |
Not related to that issue, but might be to my other one. |
I'll close up all my garbage bug reports and replace them with real ones soon, I promise. :) |
I started fixer only with operators_spaces, so he gives problems. |
Too many spaces around operators are trimmed thanks to #2092 If you want to have them aligned, use
|
But I don't want to realign my arrays. operators_spaces is doing some job with arrays witch it shouldn't do. |
why you want to have extra 2 spaces? |
Basically problem is that this fixer brakes more complex aligments like this:
All I want is that this operator won't affect arrays, because for align arrays we have "align_double_arrow". Maybe I'm wrong. |
It's hard to have fixer for binary operators, and then say fix all operators except For aligning we have separated fixer, as we don't want to align all operators (and aligning for Why this is broken btw?
Also, if really needed, you could prepare a PR that will allow |
This is only happening due to the bug causing it to be unaligned first... |
Turn off both align fixers and it still gets unaligned. |
|
That seems wrong? |
I see nothing wrong about it. |
It's unaligning double arrow, and that shouldn't be happening. That case should be excluded, or the double arrow unalign fixer should be removed, and this one replaced with configuration to select operators to unalign. |
👍, I was already thinking about this, but only for 2.x branch configuration -> 👍 |
👍 |
Since 1.11.7 operators_spaces fixes arrays double arrow.
Before
After
I think that operator fixer should not affect arrays since aligment in arrays is something more complex.
The text was updated successfully, but these errors were encountered: