Skip to content

Commit

Permalink
Fix single parameter hooks docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Dec 11, 2023
1 parent ae41c49 commit 5e2fde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/extract-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function parse_docblock( $raw_comment ) {

if ( ! empty( $data['param'] ) ) {
$doc .= "## Parameters\n";
foreach ( $data['param'] as $param ) {
foreach ( (array) $data['param'] as $param ) {
$p = explode( ' ', $param, 3 );
$doc .= "\n- {$p[0]} `{$p[1]}` {$p[2]}";
}
Expand Down

0 comments on commit 5e2fde7

Please sign in to comment.