vscode-intelephense
vscode-intelephense copied to clipboard
[PSR-12] Anonymous Classes line break
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