public function pass(FuncCall $funcCall, Context $context)
{
$functionName = $this->resolveFunctionName($funcCall, $context);
if (!$functionName || !isset($this->map[$functionName])) {
return false;
}
if ($funcCall->getDocComment()) {
$phpdoc = $this->docBlockFactory->create($funcCall->getDocComment()->getText());
if ($phpdoc->hasTag('expected')) {
return false;
}
}
$context->notice('debug.code', sprintf('Function %s() is a debug function, please don`t use it in production.', $functionName), $funcCall);
return true;
}