vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

[PSR-12] Anonymous Classes line break

Open tianyiw2013 opened this issue 3 years ago • 1 comments

Describe the bug PSR-12 (8. Anonymous Classes) The opening brace MUST go on the same line, and the closing brace MUST go on the next line following the body. https://www.php-fig.org/psr/psr-12/

To Reproduce

// After formatting with Intelephense
$instance = new class extends \Foo implements \HandleableInterface
{
    // Class content
};

Expected behavior

// Brace on the same line
$instance = new class extends \Foo implements \HandleableInterface {
    // Class content
};

Screenshots N/A

Platform and version Intelephense 1.8.0

tianyiw2013 avatar Dec 14 '21 04:12 tianyiw2013