Multi-line function declarations with an annotated return and the opening brace on the same line as the closing parentheses have incorrectly indented bodies. Note that the behavior is correct if the type annotation for the return is omitted.
Example
Current Behavior
function add(
int $x,
int $y
): int {
return $x + $y;
}
Expected Behavior
function add(
int $x,
int $y
): int {
return $x + $y;
}
Multi-line function declarations with an annotated return and the opening brace on the same line as the closing parentheses have incorrectly indented bodies. Note that the behavior is correct if the type annotation for the return is omitted.
Example
Current Behavior
Expected Behavior