diff --git a/lib/Raven/Breadcrumbs/MonologHandler.php b/lib/Raven/Breadcrumbs/MonologHandler.php index 52a658dbd..8a14301bb 100644 --- a/lib/Raven/Breadcrumbs/MonologHandler.php +++ b/lib/Raven/Breadcrumbs/MonologHandler.php @@ -61,9 +61,9 @@ protected function write(array $record) return; } - if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) { + if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || (PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable))) { /** - * @var Exception $exc + * @var \Exception|\Throwable $exc */ $exc = $record['context']['exception']; $crumb = array(