vscode-phpfmt
vscode-phpfmt copied to clipboard
PSR2ModifierVisibilityStaticOrder mangles nullable type declarations in function parameters
e.g.,
PSR2ModifierVisibilityStaticOrder disabled:
class Foo {
static public function bar(?string $baz) {
noop();
}
}
function foo(?string $bar): void {
noop();
}
PSR2ModifierVisibilityStaticOrder enabled:
class Foo {
public static function bar(?string $baz) {
noop();
}
}
function foo(string ? $bar): void {
noop();
}
Ups, this one is good, thank you.
Hi! This should be fixed in the latest release, may you confirm? Thanks in advance.
Working as expected!