Align an array that is a class property
Good day.
I like how the IDE aligns arrays:
$a1 = [
'elem1',
'elem2'
];
But if the array is a property of the class, the alignment is done differently:
class C1 {
public
$v1,
$a1 = [
'elem1',
'elem2'
],
$v2;
}
How can I configure PhpStorm to align the code like this:
class C1 {
public
$v1,
$a1 = [
'elem1',
'elem2'
],
$v2;
}
Thanks.
Please sign in to leave a comment.
I am afraid there's no way of doing that since the way PhpStorm indents the wrapped array in a class is a bug.
Please submit it to our issue tracker: https://youtrack.jetbrains.com/newIssue?project=WI
Eugene Morozov, thanks.
I followed your advice: https://youtrack.jetbrains.com/issue/WI-43640.