Skip to content

Commit

Permalink
Fixes call to monolog error handler
Browse files Browse the repository at this point in the history
The context param of handleError() should be always an array
  • Loading branch information
tomkoo authored Sep 3, 2021
1 parent 1623ba3 commit ac44bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MonologErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ protected function handleException($e)
*/
protected function handleError($event)
{
$this->errorHandler->handleError($event->code, $event->message, $event->file, $event->line, $event->params);
$context = is_array($event->params) ? $event->params : [$event->params];
$this->errorHandler->handleError($event->code, $event->message, $event->file, $event->line, $context);
parent::handleError($event);
}
}

0 comments on commit ac44bb2

Please sign in to comment.