W3docs

class does not comply with psr-4 autoloading standard. Skipping

PSR-4 is a standard for autoloading classes in PHP.

PSR-4 is a standard for autoloading classes in PHP. It requires that class files be organized in a specific directory structure and that the namespace of a class corresponds to the directory structure in which the class file is located. If a class does not comply with PSR-4, it may not be autoloaded correctly and may need to be manually included in the code. The message "class does not comply with psr-4 autoloading standard. Skipping" indicates that the class in question is not following the PSR-4 standard and will not be loaded automatically by the autoloader.

To resolve this, verify that your composer.json correctly maps the namespace to the directory, then regenerate the autoloader:

{
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    }
}

Ensure the file structure matches the namespace mapping:

src/
└── MyClass.php

Inside MyClass.php:

<?php
namespace App;

class MyClass { }

After correcting the namespace or directory paths, run:

composer dump-autoload