Fix PHP8.2 str_split function returns empty arrays for empty strings

This commit is contained in:
Huong Nguyen
2023-02-03 14:42:07 +07:00
parent cf332477cc
commit 4a55e40cd7
10 changed files with 17 additions and 13 deletions
@@ -24,4 +24,5 @@ return [
[-2147483648, '"ff80000000"'],
[2147483648, '"80000000"'],
[2147483647, '"7fffffff"'],
[0, '""'],
];
@@ -17,4 +17,5 @@ return [
['#NUM!', '"37777777770"'], // too many digits
[536870911, '"3777777777"'], // highest positive
[-536870912, '"4000000000"'], // lowest negative
['0', '""'],
];
@@ -57,4 +57,8 @@ return [
'#VALUE!',
'WRONG',
],
[
0,
'',
],
];