When in an array and there is a new line anywhere in the array structure then put all the array items on a new line and indent.
Code Format: Array new line
- Edited
Thank you Ray,
It makes sense!
Will be done.
This will be available in the upcoming release.
Thanks Ray!
3 months later
MiloslavBeno is it fixed?
yes, this is available since 1.22.11089
.
MiloslavBeno added the Solved tag.
10 days later
Hi, is there any option (settings) related to this feature? Thank you
Jean-FrancoisHIVERT Currently, we have the following setting for array initializers:
Yes, these should allow configuring it as the developer wants.
Or it's enabled by default in the PSR-12
code style.