Problem/Motivation
Error on Monolog extra processor:
wodby@php.container:/var/www/html $ drush updb
[19-Jan-2024 07:19:47 UTC] PHP Fatal error: Declaration of Drupal\monolog_extra\Logger\Processor\TruncateMessagesProcessor::__invoke(array $record) must be compatible with Monolog\Processor\ProcessorInterface::__invoke(Monolog\LogRecord $record) in /var/www/html/docroot/modules/contrib/monolog_extra/src/Logger/Processor/TruncateMessagesProcessor.php on line 35
Fatal error: Declaration of Drupal\monolog_extra\Logger\Processor\TruncateMessagesProcessor::__invoke(array $record) must be compatible with Monolog\Processor\ProcessorInterface::__invoke(Monolog\LogRecord $record) in /var/www/html/docroot/modules/contrib/monolog_extra/src/Logger/Processor/TruncateMessagesProcessor.php on line 35
[warning] Drush command terminated abnormally.
Proposed resolution
Monolog invoke method should use LogRecord instead for array https://github.com/Seldaek/monolog/blob/main/UPGRADE.md
Issue fork monolog_extra-3415774
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
eduardo morales albertiComment #4
omarlopesinoComment #5
eduardo morales albertiCovered with tests, ready to review
Comment #7
omarlopesino