Skip to content

Valid enum with keys public/protected/private causes error #994

@TheCelavi

Description

@TheCelavi
  • PHPMD version: 2.13.0
  • PHP Version: 8.2
  • Installation type: composer
  • Operating System / Distribution & Version: MacOS X Ventura, Docker Debian

Current Behavior

Explained here: pdepend/pdepend#640

enum Acces {
    case PUBLIC;
    case PROTECTED;
}

yields error.

Expected Behavior

Should not yield error

Steps To Reproduce:

Create enum and run analysis.

Notes

I assume that issue is related to PDEPEND, and fixing issue there and bumping dependency version here would fix it. Issue added for completeness.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions