From f9d99d54291f22650dab34bce7410b0e67eff974 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Sun, 25 Aug 2024 22:35:27 +0200 Subject: [PATCH] Add @param-out for wp_parse_str() (#204) * Add @param-out for wp_parse_str * fix missing parameter name --- functionMap.php | 1 + wordpress-stubs.php | 1 + 2 files changed, 2 insertions(+) diff --git a/functionMap.php b/functionMap.php index 49d6fca..cf82150 100644 --- a/functionMap.php +++ b/functionMap.php @@ -157,4 +157,5 @@ 'WP_Widget::form' => [null, 'instance' => 'T'], 'WP_Widget::update' => [null, 'new_instance' => 'T', 'old_instance' => 'T'], 'WP_Widget::widget' => [null, 'instance' => 'T', 'args' => 'array{name:string,id:string,description:string,class:string,before_widget:string,after_widget:string,before_title:string,after_title:string,before_sidebar:string,after_sidebar:string,show_in_rest:boolean,widget_id:string,widget_name:string}'], + 'wp_parse_str' => [null, '@param-out' => 'array $result'], ]; diff --git a/wordpress-stubs.php b/wordpress-stubs.php index d6e08ea..90e1264 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -112092,6 +112092,7 @@ function map_deep($value, $callback) * * @param string $input_string The string to be parsed. * @param array $result Variables will be stored in this array. + * @param-out array $result */ function wp_parse_str($input_string, &$result) {