public function getBacktrace($exception = null)
    {
        $backtrace = parent::getBacktrace($exception);

        foreach ($backtrace as $index => $backtraceCall) {
            $functionName = $this->buildFunctionName($backtraceCall);
            foreach ($this->filteredFunctions as $pattern) {
                if (preg_match('/'.$pattern.'/', $functionName)) {
                    unset($backtrace[$index]);
                    break;
                }
            }
        }

        return array_values($backtrace);
    }
public function getBacktrace($exception = null)
    {
        $backtrace = parent::getBacktrace($exception);

        foreach ($backtrace as $index => $backtraceCall) {
            $functionName = $this->buildFunctionName($backtraceCall);
            foreach ($this->filteredFunctions as $pattern) {
                if (preg_match('/'.$pattern.'/', $functionName)) {
                    unset($backtrace[$index]);
                    break;
                }
            }
        }

        return array_values($backtrace);
    }
public function getBacktrace ( $ exception = null ) { $ backtrace = parent :: getBacktrace ( $ exception ) ; foreach ( $ backtrace as $ index => $ backtraceCall ) { $ functionName = $ this -> buildFunctionName ( $ backtraceCall ) ; foreach ( $ this -> filteredFunctions as $ pattern ) { if ( preg_match ( '/' . $ pattern . '/' , $ functionName ) ) { unset ( $ backtrace [ $ index ] ) ; break ; } } } return array_values ( $ backtrace ) ; }
Returns a filtered backtrace using regular expressions
@param  mixed      $exception
@return array|void
Returns a filtered backtrace using regular expressions