plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

respect comment between `try`, `catch` and `finally`

Open alexander-akait opened this issue 7 years ago • 0 comments

Prettier 1.14.3

PHP Plugin 0.9.0

Same as for if, else if and else

Input:

// Comment
try {
    return tap($callback($this), function () {
        $this->commit();
    });
}
// Comment
catch (FooException $e) {
    throw $e;
}
// Comment
catch (BarException $e) {
    throw $e;
}

alexander-akait avatar Oct 24 '18 19:10 alexander-akait