vscode-phpfmt
vscode-phpfmt copied to clipboard
StripNewlineWithinClassBody adds rogue closing curly bracket when a "class" named argument is used in the body of a function
e.g.,
StripNewlineWithinClassBody disabled:
function bar($class) {
echo $class;
}
function foo() {
bar(class: 'baz');
}
// EOF
StripNewlineWithinClassBody enabled:
function bar($class) {
echo $class;
}
function foo() {
bar(class: 'baz');
}
// EOF
}
Thank you.
Hi! This should be fixed in the latest release, may you confirm? Thanks in advance.
Working as expected!