src/Util.php
public static function walkBacktrace($backtraces, callable $callback)
    {
        foreach($backtraces as $index => $item){
            $func  = $item['function'] ?? '';
            $class = $item['class'] ?? '';
            $type  = $item['type'] ?? '';
            $file  = $item['file'] ?? '';
            $line  = $item['line'] ?? '';
            ($callback)($index, $file, $line, $class, $type, $func);
        }
    }
public static function walkBacktrace($backtraces, callable $callback)
    {
        foreach($backtraces as $index => $item){
            $func  = $item['function'] ?? '';
            $class = $item['class'] ?? '';
            $type  = $item['type'] ?? '';
            $file  = $item['file'] ?? '';
            $line  = $item['line'] ?? '';
            ($callback)($index, $file, $line, $class, $type, $func);
        }
    }
public static function walkBacktrace ( $ backtraces , callable $ callback ) { foreach ( $ backtraces as $ index => $ item ) { $ func = $ item [ 'function' ] ?? '' ; $ class = $ item [ 'class' ] ?? '' ; $ type = $ item [ 'type' ] ?? '' ; $ file = $ item [ 'file' ] ?? '' ; $ line = $ item [ 'line' ] ?? '' ; ( $ callback ) ( $ index , $ file , $ line , $ class , $ type , $ func ) ; } }
Walk back traces

@param array|\Traversable $backtraces
@param callable $callback
Walk back traces