Skip to content

Commit

Permalink
Update functionMap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
IanDelMar committed Apr 14, 2024
1 parent d820d49 commit 3c0978c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$cronArgsType = 'list<mixed>';
$wpWidgetRssFormArgsType = 'array{number: int, error: bool, title?: string, url?: string, items?: int, show_summary?: int, show_author?: int, show_date?: int}';
$wpWidgetRssFormInputsType = 'array{title?: bool, url?: bool, items?: bool, show_summary?: bool, show_author?: bool, show_date?: bool}';
$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}>";
$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}>";

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

0 comments on commit 3c0978c

Please sign in to comment.