private function formatStackFrame($frame)
    {
        return [
            'file'      => isset($frame['file']) ? $frame['file'] : 'unknown',
            'line'      => isset($frame['line']) ? $frame['line'] : 'unknown',
            'function'  => (isset($frame['class']) ? $frame['class'] . $frame['type'] : '') . $frame['function'],
            'arguments' => $this->formatArguments($frame['args'])
        ];
    }