protected checkInternalArrayPointerAccessInByValueForeach ( PhpParser\Node $node ) | ||
$node | PhpParser\Node |
protected function checkInternalArrayPointerAccessInByValueForeach(Node $node)
{
if ($this->hasFunctionCallWithForeachArgument($node, $this->arrayPointerModifyingFunctions, true)) {
$this->addContextMessage('Possible internal array pointer access/modification in a by-value foreach loop', $node);
}
}