diff --git a/plugins/woocommerce/changelog/fix-fix-php-docblock-for-wc-cli-runner-register-route-commands-47598 b/plugins/woocommerce/changelog/fix-fix-php-docblock-for-wc-cli-runner-register-route-commands-47598 new file mode 100644 index 00000000000..9f84611a6c2 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-fix-php-docblock-for-wc-cli-runner-register-route-commands-47598 @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Updated the PHP DocBlock for WC_CLI_Runner::register_route_commands to correctly specify the first parameter's type as being a WC_CLI_REST_Command object rather than a string. diff --git a/plugins/woocommerce/includes/cli/class-wc-cli-runner.php b/plugins/woocommerce/includes/cli/class-wc-cli-runner.php index 1e5e00fe6e5..9225a210ae0 100644 --- a/plugins/woocommerce/includes/cli/class-wc-cli-runner.php +++ b/plugins/woocommerce/includes/cli/class-wc-cli-runner.php @@ -98,10 +98,10 @@ class WC_CLI_Runner { * Generates command information and tells WP CLI about all * commands available from a route. * - * @param string $rest_command WC-API command. - * @param string $route Path to route endpoint. - * @param array $route_data Command data. - * @param array $command_args WP-CLI command arguments. + * @param WC_CLI_REST_Command $rest_command WC-API command. + * @param string $route Path to route endpoint. + * @param array $route_data Command data. + * @param array $command_args WP-CLI command arguments. */ private static function register_route_commands( $rest_command, $route, $route_data, $command_args = array() ) { // Define IDs that we are looking for in the routes (in addition to id)