Array brackets at the function/constructor call's line
Previously PSPStorm was formatting my arrays as function/constructor argument like this:
new FooBar([
'foo' => 'bar',
'bar' => 'baz'
]);
But now, after upgrade, by some reason it does it like that:
new FooBar(
[
'foo' => 'bar',
'bar' => 'baz'
]
);
I'd like to revert it by I cannot find out proper config option. Could you suggest it please?
Please sign in to leave a comment.
Hi there,
Check at Settings/Preferences | Editor | Code Style | PHP | Wrapping and Braces | Method call arguments -- I think it should be a matter of clearing 2 options for ( and ).
Hint: you can insert your own code into the preview area there and try changing options to see it live on your real code example.