Cloudflare-WordPress icon indicating copy to clipboard operation
Cloudflare-WordPress copied to clipboard

PHP 8.2 Compatibility

Open fliespl opened this issue 8 months ago • 3 comments

Confirmation

  • [X] My issue isn't already found on the issue tracker.
  • [X] I have replicated my issue using the latest version of the plugin and it is still present.

WordPress version

6.4.2

Cloudflare-WordPress version

4.12.2

PHP version

8.2.8

Expected result

Successful plugin activation

Actual result

$ wp plugin activate cloudflare PHP Fatal error: Declaration of CF\Integration\DefaultLogger::debug($message, array $context = []) must be compatible with Psr\Log\AbstractLogger::debug(Stringable|string $message, array $context = []): void in /x/wp-content/plugins/cloudflare/src/Integration/DefaultLogger.php on line 42 Fatal error: Declaration of CF\Integration\DefaultLogger::debug($message, array $context = []) must be compatible with Psr\Log\AbstractLogger::debug(Stringable|string $message, array $context = []): void in /x/wp-content/plugins/cloudflare/src/Integration/DefaultLogger.php on line 42

Steps to reproduce

Trying to use plugin with php 8.2.8.

Additional factoids

No response

References

No response

fliespl avatar Dec 12 '23 21:12 fliespl

It's a collision with rollbar plugin.

fliespl avatar Dec 12 '23 21:12 fliespl