You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In IntelliJ IDEA phpcs, incorrectly flags valid PHP code as an warning. Specifically, it misinterprets the type of class constants. For example, declaring a constant like final public const string JOURNEY; results in an error message from PHP CS Fixer stating
"phpcs: Class constants must be uppercase; expected STRING but found string".
It seems that PHP CS Fixer is incorrectly checking the type declaration (string) instead of the constant name (JOURNEY).
@kubawerlos In that case, still closed correctly as the issues sounds like a duplicate of #3927. Please search before opening a new issue (and don't open issues in this repo anymore - see #3932)
As per #3932, development on PHP_CodeSniffer will continue in the PHPCSStandards/PHP_CodeSniffer repository. If you want to stay informed, you may want to start "watching" that repo (or watching releases from that repo).
Description
In IntelliJ IDEA phpcs, incorrectly flags valid PHP code as an warning. Specifically, it misinterprets the type of class constants. For example, declaring a constant like
final public const string JOURNEY;
results in an error message from PHP CS Fixer stating"phpcs: Class constants must be uppercase; expected STRING but found string".
It seems that PHP CS Fixer is incorrectly checking the type declaration (
string
) instead of the constant name (JOURNEY
).Runtime version
PHP CS Fixer v3.40.2, when used with PHP 8.3
Code snippet that reproduces the problem
The text was updated successfully, but these errors were encountered: