fixed null conversation for strToUpper (#2292)
fixed in the same way as it already has been done for strToLower Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
This commit is contained in:
parent
5ca5e3423d
commit
4c4ae2634f
|
|
@ -490,7 +490,7 @@ class StringHelper
|
||||||
*/
|
*/
|
||||||
public static function strToUpper($textValue)
|
public static function strToUpper($textValue)
|
||||||
{
|
{
|
||||||
return mb_convert_case($textValue, MB_CASE_UPPER, 'UTF-8');
|
return mb_convert_case($textValue ?? '', MB_CASE_UPPER, 'UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue