phpbrake
phpbrake copied to clipboard
Monolog 3 support
Monolog 3 has changed the signature of the AbstractProcessingHandler::write
method from an array to a record object, leading to type errors and static analysis errors.
If you want to stay backwards-compatible, you could avoid typing write
method and accept both arrays or records. Monolog\LogRecord
implements the ArrayAccess
interface, so the method body can stay the same
Hi there all. Thanks for this package, much appreciated. I was wondering whether there was there any update regarding an upgrade to Monolog 3? Laravel 10 now ships with Monolog 3. Also is this repo still maintained? There doesn't seem to have been an update for a while.
Would be great to get this, especially as there is an open PR that looks like it does the upgrade.