src/ErrorHandler/ErrorHandler.php
public function handleException($exception)
    {
        // lets store the exception so we can use the backtrace it provides
        $this->uncaughtException = $exception;
        \http_response_code(500);
        $this->handleError(
            E_ERROR,
            'Uncaught exception \''.\get_class($exception).'\' with message '.$exception->getMessage(),
            $exception->getFile(),
            $exception->getLine()
        );
        $this->uncaughtException = null;
        if ($this->cfg['continueToPrevHandler'] && $this->prevExceptionHandler) {
            \call_user_func($this->prevErrorHandler, $exception);
        }
    }
public function handleException($exception)
    {
        // lets store the exception so we can use the backtrace it provides
        $this->uncaughtException = $exception;
        \http_response_code(500);
        $this->handleError(
            E_ERROR,
            'Uncaught exception \''.\get_class($exception).'\' with message '.$exception->getMessage(),
            $exception->getFile(),
            $exception->getLine()
        );
        $this->uncaughtException = null;
        if ($this->cfg['continueToPrevHandler'] && $this->prevExceptionHandler) {
            \call_user_func($this->prevErrorHandler, $exception);
        }
    }
Handle uncaught exceptions

This isn't strictly necesssary...  uncaught exceptions  are a fatal error, which we can handle...
However..  An backtrace sure is nice...
a) catching backtrace via shutdown function only possible if xdebug installed
b) xdebug_get_function_stack's magic doesn't seem to powerless for uncaught exceptions!

@param Exception|Throwable $exception exception to handle

@return void