inpsyde / Wonolog

Monolog-based logging package for WordPress.
https://inpsyde.github.io/Wonolog/
MIT License
173 stars 17 forks source link

[Bug]: After update wordpress to 6.2.2 i get the following error #71

Open themca opened 1 year ago

themca commented 1 year ago

Description of the bug

I get the following error: Fatal error: Declaration of Inpsyde\Wonolog\Handler\DateBasedStreamHandler::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in vendor/inpsyde/wonolog/src/Handler/DateBasedStreamHandler.php on line 100

Also causes to brick WPBakery Builder in Backend

Reproduction instructions

Not possible to reproduce on a special way, because I'm using wonlog in an api call

Expected behavior

Should write an error log

Environment info

Relevant log output

No response

Additional context

No response

Code of Conduct

gmazzap commented 3 months ago

What version are you using? Please update to v2 for modern PHP.