We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Placing a comment line above the default keyword in a match() {} expression will be incorrectly indented on formatting.
default
match() {}
To Reproduce Before formatting:
match ($number) { // comment for expression 1 1 => '1', // comment for expression 2 2 => '2', // comment for default default => '0' };
After formatting:
Expected behavior The comment above the default should stay on the same column as the others.
Platform and version macOS Sonoma: Version 14.6.1 (23G93) PHP: 8.0.13 PHP Intelephense: v1.12.6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Placing a comment line above the
default
keyword in amatch() {}
expression will be incorrectly indented on formatting.To Reproduce
Before formatting:
After formatting:
Expected behavior
The comment above the
default
should stay on the same column as the others.Platform and version
macOS Sonoma: Version 14.6.1 (23G93)
PHP: 8.0.13
PHP Intelephense: v1.12.6
The text was updated successfully, but these errors were encountered: