PHPSA\Analyzer\Pass\Expression\FunctionCall\RandomApiMigration::pass PHP Метод

pass() публичный Метод

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('rand.api.migration', sprintf('Function %s() is not recommended, please use random_int/random_bytes (PHP 7) or mt_%s (not cryptographically secure) instead.', $functionName, $functionName), $funcCall);
        }
    }
RandomApiMigration