Sstalle\php7cc\NodeVisitor\ForeachVisitor::checkArrayModificationByFunctionInByReferenceForeach PHP Method

checkArrayModificationByFunctionInByReferenceForeach() protected method

protected checkArrayModificationByFunctionInByReferenceForeach ( PhpParser\Node $node )
$node PhpParser\Node
    protected function checkArrayModificationByFunctionInByReferenceForeach(Node $node)
    {
        if ($this->hasFunctionCallWithForeachArgument($node, $this->arrayModifyingFunctions, false)) {
            $this->addContextMessage('Possible array modification using internal function in a by-reference foreach loop', $node);
        }
    }