HoldOffHunger / HoldOffHunger/php-data-structures
Fix Duplicate Results for Sub-Arrays Correctly Formatted
Offen
bug
good first issue
- Vorherrschende Sprache
- PHP
- Sterne
- 1
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.