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
PHPMD does not let me use a class constant called EMPTY. Sample:
classTest
{
constEMPTY = 'empty';
}
I suspect it's being too strict since "As of PHP 7.0.0 these keywords are allowed as as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name."
PHPMD does not let me use a class constant called
EMPTY
. Sample:I suspect it's being too strict since "As of PHP 7.0.0 these keywords are allowed as as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name."
http://php.net/manual/en/reserved.keywords.php
The text was updated successfully, but these errors were encountered: