private function printVars(Stmt\ClassMethod $node, array $varsInMethodSign)
    {
        $var = '';
        $vars = array_diff(array_unique(array_filter($this->collectVars($node))), $varsInMethodSign);
        if (!empty($vars)) {
            $var .= "\n    var ".implode(', ', $vars).";\n";
        }
        
        // dirty...
        Printer\Expr\ArrayDimFetchPrinter::resetCreatedVars();

        return $var;
    }
private function printVars(Stmt\ClassMethod $node, array $varsInMethodSign)
    {
        $var = '';
        $vars = array_diff(array_unique(array_filter($this->collectVars($node))), $varsInMethodSign);
        if (!empty($vars)) {
            $var .= "\n    var ".implode(', ', $vars).";\n";
        }
        
        // dirty...
        Printer\Expr\ArrayDimFetchPrinter::resetCreatedVars();

        return $var;
    }
@param Stmt\ClassMethod $node
@param array            $varsInMethodSign

@return string