From 8ff30266b9b1a57c5f8374c9e3ba902be6f80af8 Mon Sep 17 00:00:00 2001 From: Marian <42134098+IanDelMar@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:07:08 +0200 Subject: [PATCH] Fix parentheses for wp_die #248 --- functionMap.php | 2 +- wordpress-stubs.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functionMap.php b/functionMap.php index 80f7d8b..4aa2bd8 100644 --- a/functionMap.php +++ b/functionMap.php @@ -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 : string)"], diff --git a/wordpress-stubs.php b/wordpress-stubs.php index b320c6c..b9282fe 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -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()) {