-
-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Description
- PHP Depend version: 2.12.1
- PHP Version: 8.1.7
- Installation type: composer (with PHPMD)
- Operating System / Distribution & Version: Alpine 3.16 (docker container)
Current Behavior
When an enum contains a value named DEFAULT or NEW, pdepend crashes.
Expected Behavior
Expected behavior is no error, just a successful analysis.
Steps To Reproduce:
Create a class with the enum and run PDepend on it
Checks before submitting
- Be sure that there isn't already an issue about this. See: Issues list
- Be sure that there isn't already a pull request about this. See: Pull requests
- I have added every step to reproduce the bug.
- If possible I added relevant code examples.
- This issue is about 1 bug and nothing more.
- The issue has a descriptive title. For example: "Default value is not available in AST when it's an array".
This is first reported in: phpmd/phpmd#985
Reactions are currently unavailable