src/DataBuilder.php
protected function buildErrorTrace($errfile, $errline)
    {
        if ($this->captureErrorStacktraces) {
            $backTrace = $this->fetchErrorTrace();
            
            $backTrace = $this->stripShutdownFrames($backTrace);
            
            // Add the final frame
            array_unshift(
                $backTrace,
                array('file' => $errfile, 'line' => $errline)
            );
        } else {
            $backTrace = array();
        }
        
        return $backTrace;
    }
protected function buildErrorTrace($errfile, $errline)
    {
        if ($this->captureErrorStacktraces) {
            $backTrace = $this->fetchErrorTrace();
            
            $backTrace = $this->stripShutdownFrames($backTrace);
            
            // Add the final frame
            array_unshift(
                $backTrace,
                array('file' => $errfile, 'line' => $errline)
            );
        } else {
            $backTrace = array();
        }
        
        return $backTrace;
    }
protected function buildErrorTrace ( $ errfile , $ errline ) { if ( $ this -> captureErrorStacktraces ) { $ backTrace = $ this -> fetchErrorTrace ( ) ; $ backTrace = $ this -> stripShutdownFrames ( $ backTrace ) ; // Add the final frame array_unshift ( $ backTrace , array ( 'file' => $ errfile , 'line' => $ errline ) ) ; } else { $ backTrace = array ( ) ; } return $ backTrace ; }
Fetches the stack trace for fatal and regular errors.

@var string $errfile
@var string $errline

@return Rollbar\ErrorWrapper
Fetches the stack trace for fatal and regular errors .