Skip to content

Commit

Permalink
Fix parentheses for wp_die
Browse files Browse the repository at this point in the history
  • Loading branch information
IanDelMar committed Oct 10, 2024
1 parent 196099a commit 8ff3026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'urldecode_deep' => ['T', '@phpstan-template' => 'T', 'value' => 'T'],
'urlencode_deep' => ['T', '@phpstan-template' => 'T', 'value' => 'T'],
'validate_file' => ["(\$file is '' ? 0 : (\$allowed_files is empty ? 0|1|2 : 0|1|2|3))"],
'wp_die' => ['($args is array{exit: false} ? void : never))'],
'wp_die' => ['($args is array{exit: false} ? void : never)'],
'wp_dropdown_languages' => ["(\$args is array{id: null|''} ? void : (\$args is array{name: null|''} ? void : string))"],
'wp_clear_scheduled_hook' => ['(0|positive-int|($wp_error is false ? false : \WP_Error))', 'args' => $cronArgsType],
'wp_generate_tag_cloud' => ["(\$args is array{format: 'array'} ? array<int, string> : string)"],
Expand Down
2 changes: 1 addition & 1 deletion wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -108697,7 +108697,7 @@ function wp_nonce_ays($action)
* code?: string,
* exit?: bool,
* } $args
* @phpstan-return ($args is array{exit: false} ? void : never))
* @phpstan-return ($args is array{exit: false} ? void : never)
*/
function wp_die($message = '', $title = '', $args = array())
{
Expand Down

0 comments on commit 8ff3026

Please sign in to comment.