noverify
noverify copied to clipboard
False alarm undefinedConstant Class constant ::XX does not exist
PHP Version: 8.1
OS: Windows 11
Run command:
noverify.exe check --ignore-vendor --allow-disable="./*" --exclude-checks="discardExpr" --index-only-files="./tests/KC,./vendor,./api3.php" --output="reports.txt" ./KC
The minimal code in which the bug appears:
class Students extends LMSEntityAbstract
{
const TIME_ZONE = 'time_zone';
protected function _propertyTimeZone(): VirtualProperty
{
// @todo propertyTimeZone
return new VirtualProperty(static::TIME_ZONE);
}
protected function propertyFullName(): VirtualProperty
{
// CONCAT_WS(' ', first_name, last_name)
return new VirtualPropertyAsExpression(self::FULL_NAME, new ConcatenateWithSeparator(
' ',
new FieldRef(self::FIRST_NAME),
new FieldRef(self::LAST_NAME)
));
}
Actual Behavior:
Expected Behavior:
No alert Students.zip s