[PHP] Non-backed enum must not has values, and vice versa
Open
kind:feature
PHP
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 16
### What happened
Non-backed enum must not has values, and vice versa
### How to reproduce
```php
Contributor guide
Research direction
Reproduce the PHP enum snippet in Apache NetBeans 16 on the PHP editor and inspect the validation diagnostics for Suit1 and Suit3. Done means invalid value declarations in a non-backed enum and valueless cases in a backed enum are both reported, while Suit2 remains valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100