private static function getStackCalls() {

        $i = 1;
        $result = [];
        foreach(xdebug_get_function_stack() as $node) {
            if(isset($node['line']) === true) {
                $result[] = "$i. ".basename($node['file']) .":" .$node['function'] ."(" .$node['line'].")";
            }
            $i++;
        }
        return $result;
    }
private static function getStackCalls() {

        $i = 1;
        $result = [];
        foreach(xdebug_get_function_stack() as $node) {
            if(isset($node['line']) === true) {
                $result[] = "$i. ".basename($node['file']) .":" .$node['function'] ."(" .$node['line'].")";
            }
            $i++;
        }
        return $result;
    }
private static function getStackCalls ( ) { $ i = 1 ; $ result = [ ] ; foreach ( xdebug_get_function_stack ( ) as $ node ) { if ( isset ( $ node [ 'line' ] ) === true ) { $ result [ ] = "$i. " . basename ( $ node [ 'file' ] ) . ":" . $ node [ 'function' ] . "(" . $ node [ 'line' ] . ")" ; } $ i ++ ; } return $ result ; }
Get stack calls

@return array
Get stack calls