diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index 90318acdddcb4..27c58b57dd671 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -1798,6 +1798,8 @@ function wp_doing_cron() { * * @param mixed $thing The variable to check. * @return bool Whether the variable is an instance of WP_Error. + * + * @phpstan-assert-if-true WP_Error $thing */ function is_wp_error( $thing ) { $is_wp_error = ( $thing instanceof WP_Error );