* the input object itself. It should not implement the surrounding
* table cells/rows, or labels/help messages.
*
- * @param string $value The value to set the input to; eg a default
+ * @param mixed $value The value to set the input to; eg a default
* text for a text input.
*
* @return string Valid HTML.
/**
* @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();
if ( $hasOutputStream ) {
return fwrite( $req['stream'], $data );
} else {
+ // @phan-suppress-next-line PhanTypeArraySuspiciousNullable
$req['response']['body'] .= $data;
return strlen( $data );