mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Bugfix: @param/@return documentation was incorrect which caused errors
This commit is contained in:
parent
7eb1defa16
commit
b81b36d120
10 changed files with 33 additions and 32 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue