src/Neutrino/Error/Helper.php
public static function formatExceptionTrace($exception)
    {
        $traces = [];

        foreach ($exception->getTrace() as $idx => $trace) {
            $_trace = [];

            $_trace['id'] = $idx;

            $_trace['func'] = '';
            if (isset($trace['class'])) {
                $_trace['func'] = $trace['class'] . '->';
            }
            if (isset($trace['function'])) {
                $_trace['func'] .= $trace['function'];
            }

            $args = [];
            if (isset($trace['args'])) {
                $args = self::verboseArgs((array) $trace['args']);
            }
            $_trace['func'] .= '(' . implode(', ', $args) . ')';

            if (isset($trace['file'])) {
                $_trace['file'] = str_replace(DIRECTORY_SEPARATOR, '/', $trace['file']);
                $_trace['where'] = $_trace['file'];

                if (isset($trace['line'])) {
                    $_trace['line'] = $trace['line'];
                    $_trace['where'] .= '(' . $trace['line'] . ')';
                }
            } else {
                $_trace['where'] = '[internal function]';
            }

            $traces[] = $_trace;
        }

        return $traces;
    }
public static function formatExceptionTrace($exception)
    {
        $traces = [];

        foreach ($exception->getTrace() as $idx => $trace) {
            $_trace = [];

            $_trace['id'] = $idx;

            $_trace['func'] = '';
            if (isset($trace['class'])) {
                $_trace['func'] = $trace['class'] . '->';
            }
            if (isset($trace['function'])) {
                $_trace['func'] .= $trace['function'];
            }

            $args = [];
            if (isset($trace['args'])) {
                $args = self::verboseArgs((array) $trace['args']);
            }
            $_trace['func'] .= '(' . implode(', ', $args) . ')';

            if (isset($trace['file'])) {
                $_trace['file'] = str_replace(DIRECTORY_SEPARATOR, '/', $trace['file']);
                $_trace['where'] = $_trace['file'];

                if (isset($trace['line'])) {
                    $_trace['line'] = $trace['line'];
                    $_trace['where'] .= '(' . $trace['line'] . ')';
                }
            } else {
                $_trace['where'] = '[internal function]';
            }

            $traces[] = $_trace;
        }

        return $traces;
    }
@param \Exception $exception

@return array