-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
PHPMD crashes when parsing enum with a value named "DEFAULT" #985
Comments
Hello, i have the same problem with the value named NEW
<?php
enum Example
{
case NEW;
} Error message:
|
Hell @guvra and @GErpeldinger Thanks for reporting, this is a bug in PDepend. I have created an issue for that: pdepend/pdepend#635 |
same behavior with |
I have the same problem with
|
@julianphp It happens with any php keyword. |
null, default and new were fixed in 2.13.0 |
Current Behavior
When an enum contains a value named
DEFAULT
, phpmd crashes.Error message:
Expected Behavior
Expected behavior is no error, just a successful analysis.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: