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.
When running
composer dumpautoload
in a Magento 2 project, I get the following warning from Composer:The file
Cron/UpdateMetadata.php
does not comply with PSR-4 autoloading. Seeing the specification:The file
Cron/UpdateMetadata.php
needs to be renamed toUpdateMetadataJob.php
rather thanUpdateMetadata.php
.