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