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);
}
}