Skip to content

Commit

Permalink
Prefix @param-out with phpstan
Browse files Browse the repository at this point in the history
As suggested in #204 (comment)
  • Loading branch information
IanDelMar committed Aug 25, 2024
1 parent f9d99d5 commit 6049efc
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 @@ -157,5 +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'],
'wp_parse_str' => [null, '@phpstan-param-out' => 'array<int|string, array|string> $result'],
];
2 changes: 1 addition & 1 deletion wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -112092,7 +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
* @phpstan-param-out array<int|string, array|string> $result
*/
function wp_parse_str($input_string, &$result)
{
Expand Down

0 comments on commit 6049efc

Please sign in to comment.