HoldOffHunger / HoldOffHunger/php-data-structures

Fix Duplicate Results for Sub-Arrays Correctly Formatted

未关闭
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug good first issue
主要语言
PHP
星标
1
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。