Closed EdmondDantes closed 2 years ago
It'll work even in PHP 5.6 even if it doesn't have the Throwable class. But for PHP 5.6 you need to add the \Exception, too.
Added in master (https://github.com/itsgoingd/clockwork/commit/fdc2b3164666e342e9e15d2667cfc46fed095461), thanks. Will tag a new release later this week.
https://github.com/itsgoingd/clockwork/blob/6a7b3942224fa53cf3704d9adba636e1f3dfeb9a/Clockwork/Request/Log.php#L121
\Throwable is the base exception class in PHP. Errors of this class are not displayed correctly
return ! empty($context['exception']) && $context['exception'] instanceof \Throwable && empty($context['raw']);