Sim
Well-known member
- Affected version
- 2.3.0
Definition in
Recommendation: change
utf8.php
is function utf8_isASCII(string $str): string
... while Str::is_ascii($str)
returns a boolRecommendation: change
utf8_isASCII
function to return a bool
PHP:
function utf8_isASCII(string $str): bool
{
return Str::is_ascii($str);
}