Skip to content

Commit

Permalink
Merge pull request #2 from tomkoo/patch-1
Browse files Browse the repository at this point in the history
Fixes call to monolog error handler
  • Loading branch information
papppeter committed Sep 3, 2021
2 parents 1623ba3 + ac44bb2 commit 1e39d67
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 1e39d67

Please sign in to comment.