apache / apache/netbeans

Wrong PSR-4 Violation

Open
#7,680 2 comments 0 reactions 0 assignees View on GitHub
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 22

### What happened

Netbeans shows warning - ```PSR-4 Violation. Namespace declaration doesn't correspond to current directory structure```

### Language / Project Type / NetBeans Component

php

### How to reproduce

My ```composer.json```
```

"autoload": {
"psr-4": {
"Vendor\\Package\\": "src/"
}
},

```

and ```src/Package.php```

```

Contributor guide

Open the contributing guide

Research direction

Reproduce the warning in Apache NetBeans 22 using the reported composer.json mapping and src/Package.php example. Start by locating the PHP project support that checks PSR-4 namespaces, then verify the example is accepted without a false violation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.