Skip to content

Commit 395dd74

Browse files
committed
Docs: Indicate absint() returns non-negative-int for static analysis.
Follow-up to r6222, r29011. See #64898. git-svn-id: https://develop.svn.wordpress.org/trunk@62647 602fd350-edb4-49c9-b593-d223f7449a82
1 parent baa3d15 commit 395dd74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-includes/load.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,8 +1464,9 @@ function is_multisite() {
14641464
*
14651465
* @param mixed $maybeint Data you wish to have converted to a non-negative integer.
14661466
* @return int A non-negative integer.
1467+
* @phpstan-return non-negative-int
14671468
*/
1468-
function absint( $maybeint ) {
1469+
function absint( $maybeint ): int {
14691470
return abs( (int) $maybeint );
14701471
}
14711472

0 commit comments

Comments
 (0)