original_string: public function userIdToOpenid(string $userId, int $agentId = null)
      {
          $params = [
              'userid' => $userId,
              'agentid' => $agentId,
          ];
  
          return $this->httpPostJson('cgi-bin/user/convert_to_openid', $params);
      }
code: public function userIdToOpenid(string $userId, int $agentId = null)
      {
          $params = [
              'userid' => $userId,
              'agentid' => $agentId,
          ];
  
          return $this->httpPostJson('cgi-bin/user/convert_to_openid', $params);
      }
code_tokens: public function userIdToOpenid ( string $ userId , int $ agentId = null ) { $ params = [ 'userid' => $ userId , 'agentid' => $ agentId , ] ; return $ this -> httpPostJson ( 'cgi-bin/user/convert_to_openid' , $ params ) ; }
docstring: Convert userId to openid.
  
  @param string   $userId
  @param int|null $agentId
  
  @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
docstring_tokens: Convert userId to openid .