YotpoLtd / magento2-module-yotpo-reviews

Open Software License 3.0
23 stars 38 forks source link

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

Open MellenIO opened 4 years ago

MellenIO commented 4 years ago

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.

yotpaul commented 4 years ago

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