apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.63k stars 841 forks source link

Wrong PSR-4 Violation #7680

Open luckyraul opened 1 month ago

luckyraul commented 1 month ago

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

<?php

namespace Vendor\Package;

class Package
{

}

Did this work correctly in an earlier version?

No / Don't know

Operating System

MacOS

JDK

20

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

junichi11 commented 4 weeks ago

AFAIR, this(composer.json) is not supported yet.

cc: @KacerCZ