Skip to content

Commit 7a83b58

Browse files
Apply suggestions from code review
Co-authored-by: Weston Ruter <[email protected]>
1 parent ec10e92 commit 7a83b58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ function get_comment_statuses() {
306306
*
307307
* @return string[] List of internal comment type slugs.
308308
*/
309-
function wp_get_internal_comment_types() {
309+
function wp_get_internal_comment_types(): array {
310310
/**
311311
* Filters the list of internal comment types.
312312
*
313313
* @since 7.0.0
314314
*
315315
* @param string[] $types List of internal comment type slugs.
316316
*/
317-
return apply_filters( 'wp_internal_comment_types', array( 'note', 'reaction' ) );
317+
return (array) apply_filters( 'wp_internal_comment_types', array( 'note', 'reaction' ) );
318318
}
319319

320320
/**

0 commit comments

Comments
 (0)