Make WordPress Core

Changeset 62647


Ignore:
Timestamp:
07/06/2026 05:57:14 PM (3 months ago)
Author:
westonruter
Message:

Docs: Indicate absint() returns non-negative-int for static analysis.

Follow-up to r6222, r29011.

See #64898.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r61774 r62647  
    14651465 * @param mixed $maybeint Data you wish to have converted to a non-negative integer.
    14661466 * @return int A non-negative integer.
    1467  */
    1468 function absint( $maybeint ) {
     1467 * @phpstan-return non-negative-int
     1468 */
     1469function absint( $maybeint ): int {
    14691470        return abs( (int) $maybeint );
    14701471}
Note: See TracChangeset for help on using the changeset viewer.