Skip to content

Commit 181ae02

Browse files
committed
Update return type
1 parent 4ddc3d0 commit 181ae02

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

includes/class-migration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public static function migrate_to_4_7_2() {
456456
* @see Comment::pre_wp_update_comment_count_now()
457457
* @param int $batch_size Optional. Number of posts to process per batch. Default 100.
458458
* @param int $offset Optional. Number of posts to skip. Default 0.
459-
* @return array|null Array with batch size and offset if there are more posts to process, null otherwise.
459+
* @return int[]|void Array with batch size and offset if there are more posts to process.
460460
*/
461461
public static function update_comment_counts( $batch_size = 100, $offset = 0 ) {
462462
global $wpdb;
@@ -483,8 +483,6 @@ public static function update_comment_counts( $batch_size = 100, $offset = 0 ) {
483483
// Schedule next batch.
484484
return array( $batch_size, $offset + $batch_size );
485485
}
486-
487-
return null;
488486
}
489487

490488
/**

0 commit comments

Comments
 (0)