magento2-module-yotpo-reviews
magento2-module-yotpo-reviews copied to clipboard
Composer Deprecation notice; file doesn't comply with autoloading standard
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
.
Hey @MellenIO I'm going to open an internal issue for this and let you know once it's resolved.