@@ -272,8 +272,8 @@ private function can_user_sync_entity_type( string $entity_kind, string $entity_
272272 return current_user_can ( 'edit_post ' , (int ) $ object_id );
273273 }
274274
275- // All of the remaining checks are for collections. If an object ID is
276- // provided, reject the request.
275+ // All the remaining checks are for collections. If an object ID is provided,
276+ // reject the request.
277277 if ( null !== $ object_id ) {
278278 return false ;
279279 }
@@ -355,10 +355,10 @@ private function process_awareness_update( string $room, int $client_id, ?array
355355 *
356356 * @since 7.0.0
357357 *
358- * @param string $room Room identifier.
359- * @param int $client_id Client identifier.
360- * @param int $cursor Client cursor (marker of last seen update).
361- * @param array< string, mixed> $update Sync update with 'type' and 'data' fields .
358+ * @param string $room Room identifier.
359+ * @param int $client_id Client identifier.
360+ * @param int $cursor Client cursor (marker of last seen update).
361+ * @param array{data: string, type: string} $update Sync update.
362362 * @return true|WP_Error True on success, WP_Error on storage failure.
363363 */
364364 private function process_sync_update ( string $ room , int $ client_id , int $ cursor , array $ update ) {
@@ -466,7 +466,7 @@ private function add_update( string $room, int $client_id, string $type, string
466466 * should_compact: bool,
467467 * room: string,
468468 * total_updates: int,
469- * updates: array<int, array{data: string, type: string}>
469+ * updates: array<int, array{data: string, type: string}>,
470470 * } Response data for this room.
471471 */
472472 private function get_updates ( string $ room , int $ client_id , int $ cursor , bool $ is_compactor ): array {
0 commit comments