Fixed Wrong return type for function utf8_isASCII

Sim

Well-known member
Affected version
2.3.0
Definition in utf8.php is function utf8_isASCII(string $str): string ... while Str::is_ascii($str) returns a bool

Recommendation: change utf8_isASCII function to return a bool

PHP:
function utf8_isASCII(string $str): bool
{
    return Str::is_ascii($str);
}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.1).

Change log:
Fix `utf8_isASCII` return type
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom