HoldOffHunger / HoldOffHunger/php-data-structures

Fix Duplicate Results for Sub-Arrays Correctly Formatted

Ouverte
#1 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug good first issue
Langage dominant
PHP
Étoiles
1
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.