Skip to content

Commit 20560be

Browse files
Add PHPStan typing for return value of WP_Sync_Post_Meta_Storage::with_suspended_posts_last_changed_update()
Co-authored-by: gemini-cli <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 19274ba commit 20560be

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/wp-includes/collaboration/class-wp-sync-post-meta-storage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ public function remove_updates_before_cursor( string $room, int $cursor ): bool
332332
* @since 7.0.0
333333
* @see wp_cache_set_posts_last_changed()
334334
*
335-
* @param Closure $callback Callback
336-
* @return mixed Return value from the callback.
335+
* @template T
336+
* @param Closure(): T $callback Callback.
337+
* @return T Return value from the callback.
337338
*/
338339
private function with_suspended_posts_last_changed_update( Closure $callback ) {
339340
$priorities = array(

0 commit comments

Comments
 (0)