diff --git a/functionMap.php b/functionMap.php index 4aea634..b6ec4f1 100644 --- a/functionMap.php +++ b/functionMap.php @@ -288,7 +288,7 @@ 'WP_List_Table::set_pagination_args' => ['void', 'args' => 'array{total_items?: int, total_pages?: int, per_page?: int}'], 'WP_Query' => [null, '@phpstan-property-read bool $query_vars_changed' => '', '@phpstan-property-read bool|string $query_vars_hash' => '', '@phpstan-method void init_query_flags()' => ''], 'WP_Query::have_posts' => [null, '@phpstan-impure' => ''], - 'WP_REST_Request' => [null, '@phpstan-template' => 'T of array', '@phpstan-implements' => 'ArrayAccess, value-of>'], + 'WP_REST_Request' => [null, '@phpstan-template' => 'T of array = array', '@phpstan-implements' => 'ArrayAccess, value-of>'], 'WP_REST_Request::get_param' => ['T[TOffset]|null', '@phpstan-template' => 'TOffset of key-of', 'key' => 'TOffset'], 'WP_REST_Request::get_params' => ['T'], 'WP_REST_Request::has_param' => [null, 'key' => 'key-of'], diff --git a/wordpress-stubs.php b/wordpress-stubs.php index f432625..4a712da 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -72889,7 +72889,7 @@ public function merge_with(&$other) * @since 4.4.0 * * @link https://www.php.net/manual/en/class.arrayaccess.php - * @phpstan-template T of array + * @phpstan-template T of array = array * @phpstan-implements ArrayAccess, value-of> */ #[\AllowDynamicProperties]