We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec10e92 commit 7a83b58Copy full SHA for 7a83b58
1 file changed
src/wp-includes/comment.php
@@ -306,15 +306,15 @@ function get_comment_statuses() {
306
*
307
* @return string[] List of internal comment type slugs.
308
*/
309
-function wp_get_internal_comment_types() {
+function wp_get_internal_comment_types(): array {
310
/**
311
* Filters the list of internal comment types.
312
313
* @since 7.0.0
314
315
* @param string[] $types List of internal comment type slugs.
316
317
- return apply_filters( 'wp_internal_comment_types', array( 'note', 'reaction' ) );
+ return (array) apply_filters( 'wp_internal_comment_types', array( 'note', 'reaction' ) );
318
}
319
320
0 commit comments