[英]Error with composer update does not comply with psr-4 autoloading standard. Skipping
I have this error when i run composer update运行 composer update 时出现此错误
Class MercadoPago\\AdvancedPayments\\AdvancedPayment located in C:/xampp/htdocs/vendor/mercadopago/dx-php/src/MercadoPago\\Entities\\AdvancedPayments\\AdvancedPayment.php does not comply with psr-4 autoloading standard.位于 C:/xampp/htdocs/vendor/mercadopago/dx-php/src/MercadoPago\\Entities\\AdvancedPayments\\AdvancedPayment.php 的类 MercadoPago\\AdvancedPayments\\AdvancedPayment 不符合 psr-4 自动加载标准。 Skipping.
跳过。
how is it solved?它是如何解决的?
It is not strange that MercadoPago is so horrible developed... MercadoPago发展得如此恐怖并不奇怪......
You cannot use that package (at least as PSR4), because the file namespace is MercadoPago\\AdvancedPayments
but it is located in MercadoPago/Entities/AdvancedPayments/AdvancedPayments.php
so that is not PSR4 compliant...您不能使用该软件包(至少作为 PSR4),因为文件命名空间是
MercadoPago\\AdvancedPayments
但它位于MercadoPago/Entities/AdvancedPayments/AdvancedPayments.php
因此不符合 PSR4...
If you check their composer.json
file, you will see that the PSR4 is a little weird... I never saw PSR4 defined in composer that way...如果你检查他们的
composer.json
文件,你会发现 PSR4 有点奇怪……我从来没有见过在 composer 中这样定义 PSR4……
Any workaround for this?有什么解决方法吗? Is it possible to load the MercadoPago Classes as standard PHP classes or something like that?
是否可以将 MercadoPago 类加载为标准 PHP 类或类似的东西?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.