src/AbstractHandler.php
protected function getStacktrace(\Throwable $e): array
    {
        $stacktrace = $e->getTrace();
        if (empty($stacktrace)) {
            return [];
        }

        //Let's let's clarify exception location
        $header = [
                'file' => $e->getFile(),
                'line' => $e->getLine()
            ] + $stacktrace[0];

        if ($stacktrace[0] != $header) {
            array_unshift($stacktrace, $header);
        }

        return $stacktrace;
    }
protected function getStacktrace(\Throwable $e): array
    {
        $stacktrace = $e->getTrace();
        if (empty($stacktrace)) {
            return [];
        }

        //Let's let's clarify exception location
        $header = [
                'file' => $e->getFile(),
                'line' => $e->getLine()
            ] + $stacktrace[0];

        if ($stacktrace[0] != $header) {
            array_unshift($stacktrace, $header);
        }

        return $stacktrace;
    }
protected function getStacktrace ( \ Throwable $ e ) : array { $ stacktrace = $ e -> getTrace ( ) ; if ( empty ( $ stacktrace ) ) { return [ ] ; } //Let's let's clarify exception location $ header = [ 'file' => $ e -> getFile ( ) , 'line' => $ e -> getLine ( ) ] + $ stacktrace [ 0 ] ; if ( $ stacktrace [ 0 ] != $ header ) { array_unshift ( $ stacktrace , $ header ) ; } return $ stacktrace ; }
Normalized exception stacktrace.

@param \Throwable $e
@return array
Normalized exception stacktrace .