Skip to content

Commit 28006ed

Browse files
committed
fix edge case when entries are empty
1 parent 37c301f commit 28006ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Storage/ManifestReader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public static function readEntries(
2323

2424
$reader->read(); // Step to the first element.
2525
do {
26+
if ($reader->value() === null) {
27+
// on empty entries lib will return null item
28+
continue;
29+
}
2630
yield $reader->value();
2731
} while ($reader->next() && $reader->depth() > $depth); // Read each sibling.
2832

0 commit comments

Comments
 (0)