Skip to content

Commit 04e33fa

Browse files
authored
Add stubs for WP 6.5 (#167)
* bump johnpbloch/wordpress * Update functionMap.php * update stubs for wp 6.5
1 parent acdb076 commit 04e33fa

File tree

3 files changed

+5363
-588
lines changed

3 files changed

+5363
-588
lines changed

functionMap.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$cronArgsType = 'list<mixed>';
1111
$wpWidgetRssFormArgsType = 'array{number: int, error: bool, title?: string, url?: string, items?: int, show_summary?: int, show_author?: int, show_date?: int}';
1212
$wpWidgetRssFormInputsType = 'array{title?: bool, url?: bool, items?: bool, show_summary?: bool, show_author?: bool, show_date?: bool}';
13-
$filesystemDirlistReturnType = "false|array<string, array{name: string, perms: string, permsn: string, owner: string|false, size: int|string|false, lastmodunix: int|string|false, lastmod: string|false, time: string|false, type: 'f'|'d'|'l', group?: string|false, number?: int|string|false, files?: array|false}>";
13+
$filesystemDirlistReturnType = "false|array<string, array{name: string, perms: string, permsn: string, owner: string|false, size: int|string|false, lastmodunix: int|string|false, lastmod: string|false, time: string|false, type: 'f'|'d'|'l', group: string|false, number: int|string|false, files?: array|false}>";
1414

1515
/**
1616
* This array is in the same format as the function map array in PHPStan:
@@ -41,8 +41,6 @@
4141
'WP_Http::head' => [$httpReturnType],
4242
'WP_Http::post' => [$httpReturnType],
4343
'WP_Http::request' => [$httpReturnType],
44-
'WP_List_Table::display_tablenav' => ['void', 'which' => '"top"|"bottom"'],
45-
'WP_List_Table::pagination' => ['void', 'which' => '"top"|"bottom"'],
4644
'WP_List_Table::set_pagination_args' => ['void', 'args' => 'array{total_items?: int, total_pages?: int, per_page?: int}'],
4745
'wp_next_scheduled' => [null, 'args' => $cronArgsType],
4846
'WP_Query::have_posts' => [null, '@phpstan-impure' => ''],

source/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-mbstring": "*",
88
"ext-openssl": "*",
99
"ext-sodium": "*",
10-
"johnpbloch/wordpress": "6.4.3"
10+
"johnpbloch/wordpress": "6.5.0"
1111
},
1212
"minimum-stability": "stable",
1313
"config": {

0 commit comments

Comments
 (0)