This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Constant with name 'NO' is incorrectly (?) marked as language constant. #128
Open

Description
Hello
It appears that class constants are usually marked with the .constant.other
property, but a constant with the name 'NO' (as in "yes" and "no") is marked as .constant.language
:
class Foo
{
const MAYBE; // Marked as .constant.other
const YES; // Marked as .constant.language
const NO; // Marked as .constant.language
}
PHP also doesn't seem to complain about usage of these names. Built-in constants such as PHP_EOL
experience the same problem (although I wouldn't go redefining these inside classes to avoid confusion). I'm also not entirely sure why YES
and NO
are marked as language constants, as I can't seem to find them in the documentation nor using get_defined_constants
. (perhaps I've just never heard of them?)
Thanks in advance