PHP: Logger Incompatible with PSR/Logger
I'm using the cloudinary/cloudinary_php:^2.0 SDK. I am simply trying to retrieve the images uploaded to my account with the documentation-provided code:
$config = Configuration::instance($_ENV['CLOUDINARY_URL']);
$cloudinary = new Cloudinary($config);
$result = $cloudinary->adminApi()->assets();
No matter how I structure this API request, I get the same error on my page:
PHP Fatal error: Declaration of Cloudinary\Log\LoggerDecorator::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in C:\xampp\htdocs\vendor\cloudinary\cloudinary_php\src\Log\LoggerDecorator.php on line 195
I am on PHP 8.0.29. This is running inside XAMPP on Windows 10 inside a VMWare workstation (for local development).
I received the same error while on PHP 8.1.17, I downgraded thinking it was a version incompatibility.
Any guidance would be appreciated.
Answers
-
Hi there
Thanks for contacting us.
This seems to be a duplicate of a private ticket that you opened. Therefore, I will go ahead and merge the two tickets together.
And all further communication will be done over the other ticket's thread.
Best regards,
Tamara
0