Commit 94236cb
committed
Fix order array sum normalizedData and nestedData
Previously, when `array_merge` was changed array+array in 6.3.5, the combined
array result is changed as well. array_merge behaves differently than array+array.
e.g.:
```
$a = ['key' => 'value-a'];
$b = ['key' => 'value-b'];
var_dump(array_merge($a, $b));
// Results in:
// array(1) {
// ["key"]=>
// string(7) "value-b"
// }
var_dump($a + $b);
// Results in:
// array(1) {
// ["key"]=>
// string(7) "value-a"
// }
```
By switching left with right, the result will be the same again.1 parent 855fc05 commit 94236cb
File tree
2 files changed
+23
-1
lines changed- Normalizer
- Tests/Normalizer
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
816 | 838 | | |
817 | 839 | | |
818 | 840 | | |
| |||
0 commit comments