public function leaveNode(Node $node)
{
if (!$node instanceof Node\Expr\FuncCall) {
return;
}
$function = $node->name;
if (!in_array($function, $this->blacklist)) {
return;
}
$this->addError(sprintf('Found blacklisted "%s" function call', $function), $node->getLine(), ParseError::TYPE_ERROR);
}