Skip to content

respect comment between try, catch and finally #829

Description

@alexander-akait

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;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions