HoldOffHunger / HoldOffHunger/php-data-structures

Fix Duplicate Results for Sub-Arrays Correctly Formatted

オープン
#1 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。