phpbrake icon indicating copy to clipboard operation
phpbrake copied to clipboard

Monolog 3 support

Open gbirke opened this issue 2 years ago • 2 comments

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

gbirke avatar Jul 28 '22 09:07 gbirke

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.

StuartCreed avatar May 17 '23 13:05 StuartCreed

Would be great to get this, especially as there is an open PR that looks like it does the upgrade.

lindyhopchris avatar Jul 01 '24 15:07 lindyhopchris