Make WordPress Core

Changeset 61005

Timestamp:
10/21/2025 04:20:53 AM (4 weeks ago)
Author:
dmsnell
Message:

Charset: Update docblock @param type in _wp_scan_utf8().

Add missing |null to optional argument &$has_noncharacters.

Discussed in https://core.trac.wordpress.org/ticket/63863

Follow-up to [61000].

See #63863.

File:
1 edited

Legend:

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

    r61004 r61005  
    3737 * @access private
    3838 *
    39  * @param string   $bytes             UTF-8 encoded string which might include invalid spans of bytes.
    40  * @param int      $at                Where to start scanning.
    41  * @param int      $invalid_length    Will be set to how many bytes are to be ignored after `$at`.
    42  * @param int|null $max_bytes         Stop scanning after this many bytes have been seen.
    43  * @param int|null $max_code_points   Stop scanning after this many code points have been seen.
    44  * @param bool    $has_noncharacters Set to indicate if scanned string contained noncharacters.
     39 * @param string    $bytes             UTF-8 encoded string which might include invalid spans of bytes.
     40 * @param int       $at                Where to start scanning.
     41 * @param int       $invalid_length    Will be set to how many bytes are to be ignored after `$at`.
     42 * @param int|null  $max_bytes         Stop scanning after this many bytes have been seen.
     43 * @param int|null  $max_code_points   Stop scanning after this many code points have been seen.
     44 * @param bool|null $has_noncharacters Set to indicate if scanned string contained noncharacters.
    4545 * @return int How many code points were successfully scanned.
    4646 */
Note: See TracChangeset for help on using the changeset viewer.