[PHP] Declaring property and method with same name should produce warning
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
PHP allows property and method to be declared with same name. This practice considered as bad design, and NB should warn user.
### How to reproduce
```php
Contributor guide
Research direction
Start by locating the PHP editor diagnostics or semantic-analysis entry point that handles duplicate declarations, then reproduce the examples from the issue. Done means NetBeans warns on the last declaration when a property and method share a name, covering the listed visibility, static, and trait cases.
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
- 35/100