Sstalle\php7cc\NodeVisitor\ForeachVisitor::enterNode PHP Метод

enterNode() публичный Метод

public enterNode ( PhpParser\Node $node )
$node PhpParser\Node
    public function enterNode(Node $node)
    {
        parent::enterNode($node);
        if ($this->isTargetLoopNode($node)) {
            $this->checkNestedByReferenceForeach($node);
        } elseif (!$this->getCurrentLoopStack()->isEmpty()) {
            $this->checkInternalArrayPointerAccessInByValueForeach($node);
            $this->checkArrayModificationByFunctionInByReferenceForeach($node);
            $this->checkAddingToArrayInByReferenceForeach($node);
        }
    }