From 2479e7242b20d3d8689cdc16f80f410eba130826 Mon Sep 17 00:00:00 2001 From: Marian <42134098+IanDelMar@users.noreply.github.com> Date: Thu, 13 Feb 2025 01:44:50 +0100 Subject: [PATCH] Narrow return type for get_current_blog_id --- functionMap.php | 1 + wordpress-stubs.php | 1 + 2 files changed, 2 insertions(+) diff --git a/functionMap.php b/functionMap.php index 8e85725..8fd0de8 100644 --- a/functionMap.php +++ b/functionMap.php @@ -219,4 +219,5 @@ 'wp_nonce_url' => [null, 'action' => '-1|string'], 'wp_nonce_field' => [null, 'action' => '-1|string'], 'did_action' => ['int<0, max>'], + 'get_current_blog_id' => ['int<0, max>'], ]; diff --git a/wordpress-stubs.php b/wordpress-stubs.php index 361bbbf..fa6b600 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -121165,6 +121165,7 @@ function absint($maybeint) * @global int $blog_id * * @return int Site ID. + * @phpstan-return int<0, max> */ function get_current_blog_id() {