Skip to content

AutoloadingIssues โ€‹

warning on by default

Group: Probable bugs ยท PhpStorm name: AutoloadingIssuesInspection

PSR-0/PSR-4 autoloaders locate a class by its name, so a file that declares a single class whose name does not match the file name will not be found by the autoloader. Point at the class name when file and class names disagree.

Configure โ€‹

In custos.json:

json
{
  "rules": {
    "AutoloadingIssues": {
      "enabled": false
    }
  }
}

Suppress โ€‹

Before the statement or declaration (or the first statement of the file), either of:

php
// @custos-ignore AutoloadingIssues

/**
 * @noinspection AutoloadingIssuesInspection
 */

Released under the MIT License. Rule catalogue modelled on Php Inspections (EA Extended); independent clean-room implementation.