HoldOffHunger / HoldOffHunger/php-data-structures
Fix Duplicate Results for Sub-Arrays Correctly Formatted
Đang mở
bug
good first issue
- Ngôn ngữ chính
- PHP
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Given...
return [
'zadornovov'=>['zadornovov', 'zadornovoff',],
'zadornovov'=>['zadornovov', 'zadornovoff',],
'zaffer'=>'zaffre',
];
If you run the `findDuplicateArrayKeys()`, you'll get....
>['zadornovov
>['zadornovov
This is because the last bracket is trimmed because it *possibly could be* the last bracket of the entire array structure, i.e., array=[el1, el2];, etc.. This code is failing to detect the alternate possibility, array=[[el1, el2], [el3, el4]];. Update code to fully detect these.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.