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

False Positive: [Error] Syntax error, unexpected T_SWITCH, expecting T_STRING on line 55. Processing aborted. #128

Open
zluiten opened this issue Aug 23, 2017 · 0 comments

Comments

@zluiten
Copy link

zluiten commented Aug 23, 2017

As of PHP 7 the keywords listed on this page https://secure.php.net/manual/en/reserved.keywords.php

are allowed as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name.

So php7cc shouldn't complain when it encounters a class with a method named switch f.e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant