PHPSA\Analyzer\Pass\Expression\FunctionCall\AliasCheck::pass PHP Method

pass() public method

public pass ( PhpParser\Node\Expr\FuncCall $funcCall, Context $context )
$funcCall PhpParser\Node\Expr\FuncCall
$context PHPSA\Context
    public function pass(FuncCall $funcCall, Context $context)
    {
        $functionName = $this->resolveFunctionName($funcCall, $context);
        if ($functionName && isset($this->map[$functionName])) {
            $context->notice('fcall.alias', sprintf('%s() is an alias of another function. Use %s() instead.', $functionName, $this->map[$functionName]), $funcCall);
        }
    }
AliasCheck