magento2-module-yotpo-reviews icon indicating copy to clipboard operation
magento2-module-yotpo-reviews copied to clipboard

Composer Deprecation notice; file doesn't comply with autoloading standard

Open MellenIO opened this issue 4 years ago • 1 comments

When running composer dumpautoload in a Magento 2 project, I get the following warning from Composer:

Deprecation Notice: Class Yotpo\Yotpo\Cron\UpdateMetadataJob located in ./vendor/yotpo/magento2-module-yotpo-reviews/Cron/UpdateMetadata.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

The file Cron/UpdateMetadata.php does not comply with PSR-4 autoloading. Seeing the specification:

The terminating class name corresponds to a file name ending in .php. The file name MUST match the case of the terminating class name.

The file Cron/UpdateMetadata.php needs to be renamed to UpdateMetadataJob.php rather than UpdateMetadata.php.

MellenIO avatar Mar 11 '20 09:03 MellenIO

Hey @MellenIO I'm going to open an internal issue for this and let you know once it's resolved.

yotpaul avatar Apr 01 '20 07:04 yotpaul