Fatal error: WcPsrLoggerAdapter.php
-
Hello,
We get an Fatal error. The version of the plugin we use is 7.8.0.
Our fatal error:
Fatal error: Declaration of Mollie\WooCommerce\Log\WcPsrLoggerAdapter::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): voidWe can ‘solve’ it by changing a line in the file mollie-payments-for-woocommerce > src > Log > WcPsrLoggerAdapter.php
Line 75. From:
public function log($level, $message, array $context = [])
To:
public function log($level, $message, array $context = []): voidBut this is not ideal, since we get a fatal error every time while updating and have to update this file again.
We found this support ticket that seem to talk about the same issue:
https://www.ads-software.com/support/topic/php-8-1-psr-3-0-0-compatibility/Hope you guys can have a look!
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.