When a function call contains a string parameter split onto multiple lines, there is an indentation problem:
<?php
myfunc(
'pages',
'foo'
. 'bar'
. 'baz'
);
The baz
line should be indented in the same way as the bar
line.
I myself prefer it on the same indentation level as the initial string line. I couldn't find a rule for that in PSR-2 nor PSR-12.
This problem appears in the following styles (C-c .):
- drupal
- pear
- psr2
- symfony2
Problem does not appear in:
PHP Mode v1.26.1-non-vcs
(20250602.1308
)
emacs 28.2