commercetools / commercetools-php-sdk

The e-commerce SDK from commercetools for PHP.
https://docs.commercetools.com/sdk/php-sdk#php-sdk-v1
MIT License
43 stars 22 forks source link

Fix - Method 'Commercetools\Core\Client::setLogger()' is not compatib… #730

Closed ignaciolflores closed 1 year ago

ignaciolflores commented 1 year ago

Fix - Method 'Commercetools\Core\Client::setLogger()' is not compatible with method 'Psr\Log\LoggerAwareInterface::setLogger()'

jenschude commented 1 year ago

The composer.json declares it's compatible with PSR/Log 1.0 and 2.0. The return type void for the LoggerAwareInterface has been added in PSR/Log 3.0. PSR/Log 3.0 has a minimum dependency for PHP version 8.0. So this would mean to also increase the minimum PHP version of this SDK.

This SDK version has reached EOL in September 2022. So you may have to fork the repository and update it.