Prevent duplicate/overwritten keys
This commit is contained in:
@@ -131,19 +131,6 @@ class TreeList implements Countable, IteratorAggregate
|
||||
$path = dirname($path);
|
||||
}
|
||||
|
||||
// $depth = $this->getEntryForIndex($index)->depth;
|
||||
// if ($ignoreSelf) $depth = max(0, $depth - 1);
|
||||
// echo "{start={$depth}}"; sleep(1);
|
||||
// while ($index >= 0) {
|
||||
// $entry = $this->getEntryForIndex($index);
|
||||
// if ($entry->depth < $depth) {
|
||||
// $node = $entry->node;
|
||||
// if ($node instanceof ArrayNode || $node instanceof ObjectNode) {
|
||||
// return $index;
|
||||
// }
|
||||
// }
|
||||
// $index--;
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user