PhpMigration\Changes\v7dot0\ForeachLoop::leaveNode PHP Method

leaveNode() public method

public leaveNode ( $node )
    public function leaveNode($node)
    {
        if ($this->depth > 0 && $node instanceof Expr\FuncCall && $this->funcTable->has($node->name)) {
            $this->addSpot('NOTICE', true, 'foreach no longer changes the internal array pointer');
        }
        if ($node instanceof Stmt\Foreach_ && $node->byRef) {
            $this->depth--;
        }
    }