Skip to content

Commit 4a573a2

Browse files
committed
docs: improve param/return types in comment.php
1 parent f727ccb commit 4a573a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-includes/comment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ function wp_check_comment_flood( $is_flood, $ip, $email, $date, $avoid_die = fal
939939
* @since 2.7.0
940940
*
941941
* @param WP_Comment[] $comments Array of comments
942-
* @return WP_Comment[] Array of comments keyed by comment_type.
942+
* @return array<string, WP_Comment[]> Array of comments keyed by comment type.
943943
*/
944944
function separate_comments( &$comments ) {
945945
$comments_by_type = array(
@@ -3446,9 +3446,9 @@ function _prime_comment_caches( $comment_ids, $update_meta_cache = true ) {
34463446
* @since 2.7.0
34473447
* @access private
34483448
*
3449-
* @param WP_Post $posts Post data object.
3450-
* @param WP_Query $query Query object.
3451-
* @return array
3449+
* @param WP_Post[] $posts Post data object.
3450+
* @param WP_Query $query Query object.
3451+
* @return WP_Post[]
34523452
*/
34533453
function _close_comments_for_old_posts( $posts, $query ) {
34543454
if ( empty( $posts ) || ! $query->is_singular() || ! get_option( 'close_comments_for_old_posts' ) ) {

0 commit comments

Comments
 (0)