From 19b5825ca6ff95c1ef7ba6756e8bde0f162a7cfb Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 26 Aug 2024 01:38:07 +0200 Subject: [PATCH] Prefix @param-out with phpstan (#205) As suggested in https://github.com/php-stubs/wordpress-stubs/pull/204#issuecomment-2308991524 --- functionMap.php | 2 +- wordpress-stubs.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functionMap.php b/functionMap.php index cf82150..6b15877 100644 --- a/functionMap.php +++ b/functionMap.php @@ -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 $result'], + 'wp_parse_str' => [null, '@phpstan-param-out' => 'array $result'], ]; diff --git a/wordpress-stubs.php b/wordpress-stubs.php index 90e1264..0eea48e 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -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 $result + * @phpstan-param-out array $result */ function wp_parse_str($input_string, &$result) {