Skip to content

Commit 99dabe4

Browse files
authored
Narrow return type for get_current_blog_id (#275)
1 parent 8ecd5db commit 99dabe4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

functionMap.php

+1
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,5 @@
219219
'wp_nonce_url' => [null, 'action' => '-1|string'],
220220
'wp_nonce_field' => [null, 'action' => '-1|string'],
221221
'did_action' => ['int<0, max>'],
222+
'get_current_blog_id' => ['int<0, max>'],
222223
];

wordpress-stubs.php

+1
Original file line numberDiff line numberDiff line change
@@ -121165,6 +121165,7 @@ function absint($maybeint)
121165121165
* @global int $blog_id
121166121166
*
121167121167
* @return int Site ID.
121168+
* @phpstan-return int<0, max>
121168121169
*/
121169121170
function get_current_blog_id()
121170121171
{

0 commit comments

Comments
 (0)