X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fhttp%2FMultiHttpClient.php;h=b195a085ef4ffab5074b99864ed9efc2f4e9bb5e;hp=e099fdb50d2fc18fd3945566f8a3c55ee06b18d4;hb=134e933e610b712089feab62736ddb2f88ea4f86;hpb=509b2f7fe247bfe89c6bedd21d4bfd22d435aa4d diff --git a/includes/libs/http/MultiHttpClient.php b/includes/libs/http/MultiHttpClient.php index e099fdb50d..b195a085ef 100644 --- a/includes/libs/http/MultiHttpClient.php +++ b/includes/libs/http/MultiHttpClient.php @@ -294,12 +294,14 @@ class MultiHttpClient implements LoggerAwareInterface { /** * @param array &$req HTTP request map + * @codingStandardsIgnoreStart + * @phan-param array{url:string,proxy?:?string,query:mixed,method:string,body:string|resource,headers:string[],stream?:resource,flags:array} $req + * @codingStandardsIgnoreEnd * @param array $opts * - connTimeout : default connection timeout * - reqTimeout : default request timeout * @return resource * @throws Exception - * @suppress PhanTypeMismatchArgumentInternal */ protected function getCurlHandle( array &$req, array $opts ) { $ch = curl_init(); @@ -410,6 +412,7 @@ class MultiHttpClient implements LoggerAwareInterface { if ( $hasOutputStream ) { return fwrite( $req['stream'], $data ); } else { + // @phan-suppress-next-line PhanTypeArraySuspiciousNullable $req['response']['body'] .= $data; return strlen( $data );