[PHP] Mismatch between default value and property type must produce error
Open
kind:feature
needs:triage
PHP
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 18
### What happened
Mismatch between default value and property type must produce error.
### How to reproduce
```php
Contributor guide
Research direction
Start with the PHP property declarations in the reproducer and trace the NetBeans PHP validation entry point that handles typed properties. Verify the behavior against the listed scalar, array, object, and null defaults; done means invalid mismatches are reported while the marked valid declarations remain accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100