Skip to content

Commit 752105a

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61005 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f9efe37 commit 752105a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/wp-includes/compat-utf8.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
* @since 6.9.0
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
*/
4747
function _wp_scan_utf8( string $bytes, int &$at, int &$invalid_length, ?int $max_bytes = null, ?int $max_code_points = null, ?bool &$has_noncharacters = null ): int {

0 commit comments

Comments
 (0)