Bugfix: @param/@return documentation was incorrect which caused errors

This commit is contained in:
djmaze 2020-03-16 15:48:58 +01:00
parent 7eb1defa16
commit b81b36d120
10 changed files with 33 additions and 32 deletions

View file

@ -1296,11 +1296,11 @@ END;
return '';
}
public static function Utf8Clear(string $sUtfString, string $sReplaceOn = '') : string
public static function Utf8Clear(?string $sUtfString, string $sReplaceOn = '') : string
{
if ('' === $sUtfString)
if (!strlen($sUtfString))
{
return $sUtfString;
return '';
}
$sUtfString = \preg_replace(static::$sValidUtf8Regexp, '$1', $sUtfString);