vscode-phpfmt
vscode-phpfmt copied to clipboard
IndentTernaryConditions affects nullable type declarations in multiline function/method parameters
e.g.,
IndentTernaryConditions disabled:
function multiline_parameters(
string $first,
?string $second,
int $third,
): ?string {
return $first == $second
? $third
: null;
}
IndentTernaryConditions enabled:
function multiline_parameters(
string $first,
?string $second,
int $third,
): ?string {
return $first == $second
? $third
: null;
}
Thanks, I'll check.
Hi! This should be fixed in the latest release, may you confirm? Thanks in advance.
Working as expected!