Skip to content

Commit 4bfb6fb

Browse files
committed
No need to override these parameters.
1 parent fc6e383 commit 4bfb6fb

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

additionalParams.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
$httpReturnType = 'array{headers:Requests_Utility_CaseInsensitiveDictionary,body:string,response:array{code:int,message:string},cookies:array<int,WP_HTTP_Cookie>,filename:string|null,http_response:WP_HTTP_Requests_Response}|WP_Error';
44

55
return [
6-
'wp_remote_get' => [$httpReturnType, 'url'=>'string', 'args'=>'array'],
7-
'wp_remote_head' => [$httpReturnType, 'url'=>'string', 'args'=>'array'],
8-
'wp_remote_post' => [$httpReturnType, 'url'=>'string', 'args'=>'array'],
9-
'wp_remote_request' => [$httpReturnType, 'url'=>'string', 'args'=>'array'],
6+
'wp_remote_get' => [$httpReturnType],
7+
'wp_remote_head' => [$httpReturnType],
8+
'wp_remote_post' => [$httpReturnType],
9+
'wp_remote_request' => [$httpReturnType],
1010
];

wordpress-stubs.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104097,8 +104097,6 @@ function wp_safe_remote_head($url, $args = array())
104097104097
* cookies: WP_HTTP_Cookie[],
104098104098
* http_response: WP_HTTP_Requests_Response|null,
104099104099
* }
104100-
* @phpstan-param string $url
104101-
* @phpstan-param array $args
104102104100
* @phpstan-return array{headers:Requests_Utility_CaseInsensitiveDictionary,body:string,response:array{code:int,message:string},cookies:array<int,WP_HTTP_Cookie>,filename:string|null,http_response:WP_HTTP_Requests_Response}|WP_Error
104103104101
*/
104104104102
function wp_remote_request($url, $args = array())
@@ -104115,8 +104113,6 @@ function wp_remote_request($url, $args = array())
104115104113
* @param string $url URL to retrieve.
104116104114
* @param array $args Optional. Request arguments. Default empty array.
104117104115
* @return array|WP_Error The response or WP_Error on failure.
104118-
* @phpstan-param string $url
104119-
* @phpstan-param array $args
104120104116
* @phpstan-return array{headers:Requests_Utility_CaseInsensitiveDictionary,body:string,response:array{code:int,message:string},cookies:array<int,WP_HTTP_Cookie>,filename:string|null,http_response:WP_HTTP_Requests_Response}|WP_Error
104121104117
*/
104122104118
function wp_remote_get($url, $args = array())
@@ -104133,8 +104129,6 @@ function wp_remote_get($url, $args = array())
104133104129
* @param string $url URL to retrieve.
104134104130
* @param array $args Optional. Request arguments. Default empty array.
104135104131
* @return array|WP_Error The response or WP_Error on failure.
104136-
* @phpstan-param string $url
104137-
* @phpstan-param array $args
104138104132
* @phpstan-return array{headers:Requests_Utility_CaseInsensitiveDictionary,body:string,response:array{code:int,message:string},cookies:array<int,WP_HTTP_Cookie>,filename:string|null,http_response:WP_HTTP_Requests_Response}|WP_Error
104139104133
*/
104140104134
function wp_remote_post($url, $args = array())
@@ -104151,8 +104145,6 @@ function wp_remote_post($url, $args = array())
104151104145
* @param string $url URL to retrieve.
104152104146
* @param array $args Optional. Request arguments. Default empty array.
104153104147
* @return array|WP_Error The response or WP_Error on failure.
104154-
* @phpstan-param string $url
104155-
* @phpstan-param array $args
104156104148
* @phpstan-return array{headers:Requests_Utility_CaseInsensitiveDictionary,body:string,response:array{code:int,message:string},cookies:array<int,WP_HTTP_Cookie>,filename:string|null,http_response:WP_HTTP_Requests_Response}|WP_Error
104157104149
*/
104158104150
function wp_remote_head($url, $args = array())

0 commit comments

Comments
 (0)