New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token: EMPTY #389

torkiljohnsen opened this Issue Jul 18, 2016 · 1 comment


None yet
3 participants

torkiljohnsen commented Jul 18, 2016

PHPMD does not let me use a class constant called EMPTY. Sample:

class Test
    const EMPTY = '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."


This comment has been minimized.

MidnightDesign commented Feb 14, 2018

This is still a problem for me. I've got PDepend 2.5.2 and PHPMD 2.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment