Closed jacekwilczynski closed 2 years ago
Despite https://github.com/squizlabs/PHP_CodeSniffer/pull/3478, there's still Generic.WhiteSpace.ScopeIndent errors when using enums.
PHPCS 3.6.2 was released Dec 2021. Syntax support for PHP 8.1 will be in version 3.7.0, which hasn't been released yet.
Please show some patience, we're all overworked and at the end of our energy after the ridiculous amount of changes for which support needed to be added over the past few years. PHP 7.4, 8.0 and 8.1 have introduced more syntax changes and more impactful deprecations than all the PHP versions from PHP 5.0 - 7.3 combined.
I can confirm the issue exists in 3.6.2 but not in master, so this will be fixed in the 3.7.0 release.
The release milestone is listed on all issues and the milestone status lets you know if it's released and what's left to do before release. Here is a direct link for 3.7.0: https://github.com/squizlabs/PHP_CodeSniffer/milestone/28
Describe the bug Despite https://github.com/squizlabs/PHP_CodeSniffer/pull/3478, there's still Generic.WhiteSpace.ScopeIndent errors when using enums.
Code sample
Custom ruleset
but a simple config like:
produces an identical result.
To reproduce Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
Expected behavior No errors.
Versions:
Additional context I am actually using the most recent version: