Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor docblock improvements #5929

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Subcommand.php
  • Loading branch information
Chintesh authored Apr 11, 2024
commit 298de06394e643b8e4d03810c4cd55b83f59a20d
2 changes: 1 addition & 1 deletion php/WP_CLI/Dispatcher/Subcommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public function invoke( $args, $assoc_args, $extra_args ) {
* Get an array of parameter names, by merging the command-specific and the
* global parameters.
*
* @param array $spec Optional. Specification of the current command.
* @param array $spec Optional. Specification of the current command.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to be array{name:array<string>} as its shape. Obviously, the $spec array probably has much more, but that's the part this function needs.

The return type looks to be string[].

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @BrianHenryIE

Extra space has been removed. It is phpcs fix

*
* @return array Array of parameter names
*/
Expand Down
Loading