mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-01 21:19:18 +00:00
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:
committed by
GitHub
parent
5ca5e3423d
commit
4c4ae2634f
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user