@@ -4290,6 +4290,8 @@ protected function get_bulk_actions()
4290
4290
*
4291
4291
* @param string $which The location of the bulk actions: 'top' or 'bottom'.
4292
4292
* This is designated as optional for backward compatibility.
4293
+ * @phpstan-param "top"|"bottom" $which
4294
+ * @phpstan-return void
4293
4295
*/
4294
4296
protected function bulk_actions($which = '')
4295
4297
{
@@ -4378,6 +4380,8 @@ protected function get_items_per_page($option, $default = 20)
4378
4380
* @since 3.1.0
4379
4381
*
4380
4382
* @param string $which
4383
+ * @phpstan-param "top"|"bottom" $which
4384
+ * @phpstan-return void
4381
4385
*/
4382
4386
protected function pagination($which)
4383
4387
{
@@ -4494,6 +4498,8 @@ protected function get_table_classes()
4494
4498
*
4495
4499
* @since 3.1.0
4496
4500
* @param string $which
4501
+ * @phpstan-param "top"|"bottom" $which
4502
+ * @phpstan-return void
4497
4503
*/
4498
4504
protected function display_tablenav($which)
4499
4505
{
@@ -40697,6 +40703,7 @@ class WP_Http
40697
40703
* filename?: string,
40698
40704
* limit_response_size?: int,
40699
40705
* } $args
40706
+ * @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
40700
40707
*/
40701
40708
public function request($url, $args = array())
40702
40709
{
@@ -40785,6 +40792,7 @@ private function _dispatch_request($url, $args)
40785
40792
* @param string|array $args Optional. Override the defaults.
40786
40793
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
40787
40794
* A WP_Error instance upon error.
40795
+ * @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
40788
40796
*/
40789
40797
public function post($url, $args = array())
40790
40798
{
@@ -40800,6 +40808,7 @@ public function post($url, $args = array())
40800
40808
* @param string|array $args Optional. Override the defaults.
40801
40809
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
40802
40810
* A WP_Error instance upon error.
40811
+ * @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
40803
40812
*/
40804
40813
public function get($url, $args = array())
40805
40814
{
@@ -40815,6 +40824,7 @@ public function get($url, $args = array())
40815
40824
* @param string|array $args Optional. Override the defaults.
40816
40825
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
40817
40826
* A WP_Error instance upon error.
40827
+ * @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
40818
40828
*/
40819
40829
public function head($url, $args = array())
40820
40830
{
@@ -81891,6 +81901,9 @@ function wp_import_upload_form($action)
81891
81901
* @param array $callback_args Optional. Data that should be set as the $args property
81892
81902
* of the box array (which is the second parameter passed
81893
81903
* to your callback). Default null.
81904
+ * @phpstan-param "normal"|"side"|"advanced" $context
81905
+ * @phpstan-param "high"|"core"|"default"|"low" $priority
81906
+ * @phpstan-return void
81894
81907
*/
81895
81908
function add_meta_box($id, $title, $callback, $screen = \null, $context = 'advanced', $priority = 'default', $callback_args = \null)
81896
81909
{
@@ -81970,6 +81983,8 @@ function do_meta_boxes($screen, $context, $object)
81970
81983
* include 'normal', 'side', and 'advanced'. Comments screen contexts
81971
81984
* include 'normal' and 'side'. Menus meta boxes (accordion sections)
81972
81985
* all use the 'side' context.
81986
+ * @phpstan-param "normal"|"side"|"advanced" $context
81987
+ * @phpstan-return void
81973
81988
*/
81974
81989
function remove_meta_box($id, $screen, $context)
81975
81990
{
@@ -104003,6 +104018,7 @@ function _wp_http_get_object()
104003
104018
* @param string $url URL to retrieve.
104004
104019
* @param array $args Optional. Request arguments. Default empty array.
104005
104020
* @return array|WP_Error The response or WP_Error on failure.
104021
+ * @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
104006
104022
*/
104007
104023
function wp_safe_remote_request($url, $args = array())
104008
104024
{
@@ -104021,6 +104037,7 @@ function wp_safe_remote_request($url, $args = array())
104021
104037
* @param string $url URL to retrieve.
104022
104038
* @param array $args Optional. Request arguments. Default empty array.
104023
104039
* @return array|WP_Error The response or WP_Error on failure.
104040
+ * @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
104024
104041
*/
104025
104042
function wp_safe_remote_get($url, $args = array())
104026
104043
{
@@ -104039,6 +104056,7 @@ function wp_safe_remote_get($url, $args = array())
104039
104056
* @param string $url URL to retrieve.
104040
104057
* @param array $args Optional. Request arguments. Default empty array.
104041
104058
* @return array|WP_Error The response or WP_Error on failure.
104059
+ * @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
104042
104060
*/
104043
104061
function wp_safe_remote_post($url, $args = array())
104044
104062
{
@@ -104057,6 +104075,7 @@ function wp_safe_remote_post($url, $args = array())
104057
104075
* @param string $url URL to retrieve.
104058
104076
* @param array $args Optional. Request arguments. Default empty array.
104059
104077
* @return array|WP_Error The response or WP_Error on failure.
104078
+ * @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
104060
104079
*/
104061
104080
function wp_safe_remote_head($url, $args = array())
104062
104081
{
@@ -104097,6 +104116,7 @@ function wp_safe_remote_head($url, $args = array())
104097
104116
* cookies: WP_HTTP_Cookie[],
104098
104117
* http_response: WP_HTTP_Requests_Response|null,
104099
104118
* }
104119
+ * @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
104100
104120
*/
104101
104121
function wp_remote_request($url, $args = array())
104102
104122
{
@@ -104112,6 +104132,7 @@ function wp_remote_request($url, $args = array())
104112
104132
* @param string $url URL to retrieve.
104113
104133
* @param array $args Optional. Request arguments. Default empty array.
104114
104134
* @return array|WP_Error The response or WP_Error on failure.
104135
+ * @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
104115
104136
*/
104116
104137
function wp_remote_get($url, $args = array())
104117
104138
{
@@ -104127,6 +104148,7 @@ function wp_remote_get($url, $args = array())
104127
104148
* @param string $url URL to retrieve.
104128
104149
* @param array $args Optional. Request arguments. Default empty array.
104129
104150
* @return array|WP_Error The response or WP_Error on failure.
104151
+ * @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
104130
104152
*/
104131
104153
function wp_remote_post($url, $args = array())
104132
104154
{
@@ -104142,6 +104164,7 @@ function wp_remote_post($url, $args = array())
104142
104164
* @param string $url URL to retrieve.
104143
104165
* @param array $args Optional. Request arguments. Default empty array.
104144
104166
* @return array|WP_Error The response or WP_Error on failure.
104167
+ * @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
104145
104168
*/
104146
104169
function wp_remote_head($url, $args = array())
104147
104170
{
0 commit comments