[PHP] Invalid attribute constant
- 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
Constants defined in [Attribut class](https://www.php.net/manual/en/language.attributes.classes.php) are:
- TARGET_CLASS
- TARGET_FUNCTION
- TARGET_METHOD
- TARGET_PROPERTY
- TARGET_CLASS_CONSTANT
- TARGET_PARAMETER
- TARGET_ALL
Unfortunately, Netbeans unable to validate assigned constant in class definition.
### How to reproduce
```php
Contributor guide
Research direction
Start by reproducing the PHP attribute examples from the issue and trace NetBeans' PHP attribute validation entry point. Verify diagnostics for unknown, duplicated, wrong-class, variable, and string operands; done means invalid operands are reported and valid target constants remain accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100