src/Logger/src/Processor/ExceptionBacktrace.php
public function getExceptionBacktrace(\Throwable $e)
    {
        $backtrace[] = [
            'line' => $e->getLine(),
            'file' => $e->getFile(),
            'code' => $e->getCode(),
            'message' => $e->getMessage(),
        ];

        if ($e->getPrevious()) {
            return array_merge(
                $backtrace,
                $this->getExceptionBacktrace($e->getPrevious())
            );
        }

        return $backtrace;
    }
public function getExceptionBacktrace(\Throwable $e)
    {
        $backtrace[] = [
            'line' => $e->getLine(),
            'file' => $e->getFile(),
            'code' => $e->getCode(),
            'message' => $e->getMessage(),
        ];

        if ($e->getPrevious()) {
            return array_merge(
                $backtrace,
                $this->getExceptionBacktrace($e->getPrevious())
            );
        }

        return $backtrace;
    }
public function getExceptionBacktrace ( \ Throwable $ e ) { $ backtrace [ ] = [ 'line' => $ e -> getLine ( ) , 'file' => $ e -> getFile ( ) , 'code' => $ e -> getCode ( ) , 'message' => $ e -> getMessage ( ) , ] ; if ( $ e -> getPrevious ( ) ) { return array_merge ( $ backtrace , $ this -> getExceptionBacktrace ( $ e -> getPrevious ( ) ) ) ; } return $ backtrace ; }
Process exception and all previous exceptions to return one-level array with exceptions backtrace

@param \Throwable $e
@return array
Process exception and all previous exceptions to return one - level array with exceptions backtrace