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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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');
}
/**