maximebf / php-debugbar

Debug bar for PHP
phpdebugbar.com
MIT License
4.2k stars 402 forks source link

Error when using MonologCollector with monolog/monolog 3.2 #514

Open mimou78 opened 2 years ago

mimou78 commented 2 years ago

Hello

I have tried using the Monolog Collector with version 3.0 and up of monolog. They changed of the "write" method, it no longer takes an array as a parameter. I solved the problem at home with an overload but if you want I can send you a PR

See https://github.com/Seldaek/monolog/blob/3.0.0-RC1/src/Monolog/Handler/AbstractProcessingHandler.php abstract protected function write(LogRecord $record): void;

mimou78 commented 2 years ago

The solution is as bellow ``
/**

parallels999 commented 1 year ago

Fixed on https://github.com/maximebf/php-debugbar/pull/506