Skip to content

Commit 10e4b1f

Browse files
committed
Docs.
1 parent 26a44af commit 10e4b1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

additionalParams.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

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

5+
/**
6+
* This array is in the same format as the stubs array in PHPStan:
7+
*
8+
* '<function_name>' => ['<return_type>, '<arg_name>'=>'<arg_type>']
9+
*
10+
* @link https://github.com/phpstan/phpstan-src/blob/1.5.x/resources/functionMap.php
11+
*/
512
return [
613
'wp_remote_get' => [$httpReturnType],
714
'wp_remote_head' => [$httpReturnType],

0 commit comments

Comments
 (0)