paypal / merchant-sdk-php

PHP SDK for integrating with PayPal's Express Checkout / MassPay / Web Payments Pro APIs
Other
230 stars 201 forks source link

Deprecation Warning on Composer v1.10.0 #161

Closed james-mckinnon closed 2 years ago

james-mckinnon commented 4 years ago

General information

Issue description

I updated Composer to it's most recent version earlier (v1.10.1) and have been getting a deprecation warning ever since:

Deprecation Notice: Class PayPal\EBLBaseComponents\BillingPeriodDetailsType_Update located in ./vendor/paypal/merchant-sdk-php/lib/PayPal/EBLBaseComponents/BillingPeriodDetailsType_Update.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

I've looked through the release notes on Composer and found that they added the deprecation warning in v1.10.0.

As it says that the class will no longer be autoloaded in v2 of Composer, I thought I should let you know :)

victormln commented 4 years ago

If you're interested on solve this, you have here a PR: https://github.com/paypal/merchant-sdk-php/pull/163

jaypatel512 commented 4 years ago

Hey @james-mckinnon !

You are absolutely right. We may have to create a new class and deprecate this class to make sure it is backward compatible. @victormln I see that in your PR you have renamed the class. I believe this may cause older integration to fail if we merge this and release, unless we do a major release with new version. Thoughts ?

devchristina commented 2 years ago

Closing due to lack of support, this repo will be archived.