You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is caused by #4084 (sorry 😜) where method_chaining_indentation got a priority, which is actually the same as array_indentation. I think in your case array_indentation runs first, whereas method_chaining_indentation seems to need to run first.
However, this might produce issues when you are chaining inside an array. I do think your situation is more common though, so the solution is to either give method_chaining_indentation a +1 or array_indentation a -1. (And of course couple the priority, with given example as testcase.)
When applying
array_indentation
andmethod_chaining_indentation
rules, PHP CS Fixer needs to run twice:first run:
second run:
This seems to be a regression in version 1.13.2 as version 1.13.1 applies all changes at first run.
The text was updated successfully, but these errors were encountered: