How to configure auto indent multiline function parameters in short array?

Hi,

How to configure auto indent for short array?

For example, I have this code


If I copied and paste it I will have:

How to change this behavior?

3
2 comments

Hi there,

Please check https://stackoverflow.com/a/61044335/783119

Settings/Preferences | Editor | Code Style | PHP | "Wrapping and Braces" tab | Function/constructor call arguments | Align when multiline

3

This has bugged me for so long and I've finally found the answer! Fwiw, it's not at all obvious to me that this option would be under function call arguments rather than relating to arrays.

1

Please sign in to leave a comment.