HoldOffHunger / HoldOffHunger/php-data-structures

Fix Duplicate Results for Sub-Arrays Correctly Formatted

Đang mở
#1 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.