Skip to content

Commit fc6e383

Browse files
committed
More specificity.
1 parent 873417a commit fc6e383

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

additionalParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$httpReturnType = 'array{headers:array,body:string,response:array{code:int,message:string},cookies:WP_HTTP_Cookie[],filename:string|null}|WP_Error';
3+
$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 [
66
'wp_remote_get' => [$httpReturnType, 'url'=>'string', 'args'=>'array'],

wordpress-stubs.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104099,7 +104099,7 @@ function wp_safe_remote_head($url, $args = array())
104099104099
* }
104100104100
* @phpstan-param string $url
104101104101
* @phpstan-param array $args
104102-
* @phpstan-return array{headers:array,body:string,response:array{code:int,message:string},cookies:WP_HTTP_Cookie[],filename:string|null}|WP_Error
104102+
* @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
104103104103
*/
104104104104
function wp_remote_request($url, $args = array())
104105104105
{
@@ -104117,7 +104117,7 @@ function wp_remote_request($url, $args = array())
104117104117
* @return array|WP_Error The response or WP_Error on failure.
104118104118
* @phpstan-param string $url
104119104119
* @phpstan-param array $args
104120-
* @phpstan-return array{headers:array,body:string,response:array{code:int,message:string},cookies:WP_HTTP_Cookie[],filename:string|null}|WP_Error
104120+
* @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
104121104121
*/
104122104122
function wp_remote_get($url, $args = array())
104123104123
{
@@ -104135,7 +104135,7 @@ function wp_remote_get($url, $args = array())
104135104135
* @return array|WP_Error The response or WP_Error on failure.
104136104136
* @phpstan-param string $url
104137104137
* @phpstan-param array $args
104138-
* @phpstan-return array{headers:array,body:string,response:array{code:int,message:string},cookies:WP_HTTP_Cookie[],filename:string|null}|WP_Error
104138+
* @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
104139104139
*/
104140104140
function wp_remote_post($url, $args = array())
104141104141
{
@@ -104153,7 +104153,7 @@ function wp_remote_post($url, $args = array())
104153104153
* @return array|WP_Error The response or WP_Error on failure.
104154104154
* @phpstan-param string $url
104155104155
* @phpstan-param array $args
104156-
* @phpstan-return array{headers:array,body:string,response:array{code:int,message:string},cookies:WP_HTTP_Cookie[],filename:string|null}|WP_Error
104156+
* @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
104157104157
*/
104158104158
function wp_remote_head($url, $args = array())
104159104159
{

0 commit comments

Comments
 (0)