diff --git src/wp-includes/blocks/calendar.php src/wp-includes/blocks/calendar.php
index f1f7967235..80b2e3cfcb 100644
--- src/wp-includes/blocks/calendar.php
+++ src/wp-includes/blocks/calendar.php
@@ -9,6 +9,8 @@
  * Renders the `core/calendar` block on server.
  *
  * @param array $attributes The block attributes.
+ * @global int $monthnum.
+ * @global int $year
  *
  * @return string Returns the block content.
  */
diff --git src/wp-includes/blocks/comments.php src/wp-includes/blocks/comments.php
index 48aac15af6..78e597ded8 100644
--- src/wp-includes/blocks/comments.php
+++ src/wp-includes/blocks/comments.php
@@ -20,6 +20,7 @@
  * @param string   $content    Block default content.
  * @param WP_Block $block      Block instance.
  * @return string Returns the filtered post comments for the current post wrapped inside "p" tags.
+ * @global WP_Post  $post Global post object.
  */
 function render_block_core_comments( $attributes, $content, $block ) {
 	global $post;
diff --git src/wp-includes/blocks/legacy-widget.php src/wp-includes/blocks/legacy-widget.php
index 94cfb9ba71..37d8586b76 100644
--- src/wp-includes/blocks/legacy-widget.php
+++ src/wp-includes/blocks/legacy-widget.php
@@ -11,6 +11,7 @@
  * @param array $attributes The block attributes.
  *
  * @return string Rendered block.
+ * @global int $wp_widget_factory.
  */
 function render_block_core_legacy_widget( $attributes ) {
 	global $wp_widget_factory;
