Skip to content

Commit

Permalink
Add @param-out for wp_parse_str() (#204)
Browse files Browse the repository at this point in the history
* Add @param-out for wp_parse_str

* fix missing parameter name
  • Loading branch information
IanDelMar authored Aug 25, 2024
1 parent 31b7ea5 commit f9d99d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<int|string, array|string> $result'],
];
1 change: 1 addition & 0 deletions wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<int|string, array|string> $result
*/
function wp_parse_str($input_string, &$result)
{
Expand Down

0 comments on commit f9d99d5

Please sign in to comment.