You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running statement_indentation on a multiline if, if the first line is missing indentation, the following lines are getting useless extra indentation. This is especially a blocking point for #7813 since
if (true
|| false
) {
// foo
}
is fixed to
if (
true
|| false
) {
// foo
}
and then to
if (
true
|| false// This line is indented for no reason
) {
// foo
}
When I expect
if (
true
|| false// This line is untouched
) {
// foo
}
Runtime version
3.51.0
Configuration file
'statement_indentation' => true
Code snippet that reproduces the problem
<?phpif (
true
|| false
) {
// foo
}
The text was updated successfully, but these errors were encountered:
@julienfalque, I see your name on every line of the StatementIndentationFixer.
Are you familiar with this fixer ? It seems complex to me, so far I dunno if the fix can be "easy".
Yes, I introduced it and made most of the bugfixes since then. I should take time to add comments and maybe refactor things to make it more clear. I'm having a look at this bug for now :)
Bug report
Description
When running
statement_indentation
on a multiline if, if the first line is missing indentation, the following lines are getting useless extra indentation. This is especially a blocking point for #7813 sinceis fixed to
and then to
When I expect
Runtime version
3.51.0
Configuration file
'statement_indentation' => true
Code snippet that reproduces the problem
The text was updated successfully, but these errors were encountered: