Skip to content
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

Closed
torkiljohnsen opened this issue Jul 18, 2016 · 1 comment
Closed

Unexpected token: EMPTY #389

torkiljohnsen opened this issue Jul 18, 2016 · 1 comment
Milestone

Comments

@torkiljohnsen
Copy link

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."

http://php.net/manual/en/reserved.keywords.php

@MidnightDesign
Copy link

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
Development

No branches or pull requests

3 participants