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:
Roland Eigelsreiter
2021-11-01 03:45:21 +01:00
committed by GitHub
parent 5ca5e3423d
commit 4c4ae2634f
+1 -1
View File
@@ -490,7 +490,7 @@ class StringHelper
*/
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');
}
/**