diff --git a/bin/extract-hooks.php b/bin/extract-hooks.php index 214bd05e..0543f936 100644 --- a/bin/extract-hooks.php +++ b/bin/extract-hooks.php @@ -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]}"; }