Skip to content

Commit e870c4a

Browse files
committed
Docs: Fix return type for WP_HTML_Decoder::read_character_reference().
Developed in #8945 Follow-up to [58281]. Props justlevine. See #64238, #61072. git-svn-id: https://develop.svn.wordpress.org/trunk@61283 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 43f9563 commit e870c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/html-api/class-wp-html-decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public static function decode( $context, $text ): string {
203203
* @param int $at Optional. Byte offset into text where span begins, defaults to the beginning (0).
204204
* @param int &$match_byte_length Optional. Set to byte-length of character reference if provided and if a match
205205
* is found, otherwise not set. Default null.
206-
* @return string|false Decoded character reference in UTF-8 if found, otherwise `false`.
206+
* @return ?string Decoded character reference in UTF-8 if found, otherwise null.
207207
*/
208208
public static function read_character_reference( $context, $text, $at = 0, &$match_byte_length = null ) {
209209
/**

0 commit comments

Comments
 (0)