Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MellenIO opened this issue Mar 11, 2020 · 1 comment

Comments

@MellenIO
Copy link

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
Copy link

yotpaul commented Apr 1, 2020

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

pniel-cohen pushed a commit that referenced this issue Apr 7, 2020
lgreenboim pushed a commit that referenced this issue Apr 23, 2020
lgreenboim pushed a commit that referenced this issue Apr 23, 2020
lgreenboim pushed a commit that referenced this issue Apr 23, 2020
lgreenboim pushed a commit that referenced this issue Apr 23, 2020
lgreenboim pushed a commit that referenced this issue Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants