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
Hello there,
I'm working on a Symfony 5.4 project with php 8.1. I declared an enum type as following:
enum Status: string { case Open = 'open'; case Archived = 'archived'; }
When running PHPCS, I got the following errors:
FOUND 3 ERRORS AFFECTING 3 LINES --------------------------------------------------------------------------------- 15 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4 20 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4 21 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 0 ---------------------------------------------------------------------------------
When running PHPCBF, here is how it fixes the errors:
As you can see, case statements have no indentation, whereas the closing bracket has 4 spaces.
case
It seems to be bug to me.
What do you think about it?
The text was updated successfully, but these errors were encountered:
Needs to wait for a new PHPCS release with squizlabs/PHP_CodeSniffer#3479 closed.
Sorry, something went wrong.
related to this issue which hasn't been tagged yet
No branches or pull requests
Hello there,
I'm working on a Symfony 5.4 project with php 8.1. I declared an enum type as following:
When running PHPCS, I got the following errors:
When running PHPCBF, here is how it fixes the errors:
As you can see,
case
statements have no indentation, whereas the closing bracket has 4 spaces.It seems to be bug to me.
What do you think about it?
The text was updated successfully, but these errors were encountered: