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
Describe the bug
Following symbols are identified as keywords:
Code sample
classSomeClass
{
publicconstEMPTY = 0; // PHP keywords must be lowercase; expected "empty" but found "EMPTY" (Generic.PHP.LowerCaseKeyword.Found)publicconstISSET = 1; // PHP keywords must be lowercase; expected "isset" but found "ISSET" (Generic.PHP.LowerCaseKeyword.Found)
}
enum MyEnum: string
{
caseEmpty = 'empty'; // PHP keywords must be lowercase; expected "empty" but found "Empty" (Generic.PHP.LowerCaseKeyword.Found)caseIsset = 'isset'; // PHP keywords must be lowercase; expected "isset" but found "Isset" (Generic.PHP.LowerCaseKeyword.Found)
}
Expected behavior
No errors
Versions (please complete the following information):
PHP: 8.1
PHPCS: 3.7.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Following symbols are identified as keywords:
Code sample
Expected behavior
No errors
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: