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

@ -106,7 +106,7 @@ class Crypt
return self::long2str($aV, true);
}
private static function long2str(array $aV, array $aW) : string
private static function long2str(array $aV, bool $aW) : string
{
$iLen = \count($aV);
$iN = ($iLen - 1) << 2;
@ -157,4 +157,4 @@ class Crypt
}
return (int) $iN;
}
}
}

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);