diff --git src/wp-includes/deprecated.php src/wp-includes/deprecated.php
index 97183f8647..ad99266b1c 100644
--- src/wp-includes/deprecated.php
+++ src/wp-includes/deprecated.php
@@ -2867,6 +2867,8 @@ function debug_fopen( $filename, $mode ) {
  * @see error_log()
  *
  * @link https://www.php.net/manual/en/function.error-log.php
+ * 
+ * @global bool $debug True to enable custom debugging, false to disable.
  *
  * @param mixed  $fp      Unused.
  * @param string $message Message to log.
diff --git src/wp-includes/load.php src/wp-includes/load.php
index e51c322908..3622546c88 100644
--- src/wp-includes/load.php
+++ src/wp-includes/load.php
@@ -318,6 +318,8 @@ function wp_get_environment_type() {
  * @since 6.3.0
  *
  * @return string The current development mode.
+ * 
+ * @global string $_wp_tests_development_mode Development mode for test environment.
  */
 function wp_get_development_mode() {
 	static $current_mode = null;
