Skip to content

Commit

Permalink
Dataset hardened against rdfInterface\tests\DatasetListQuadPartsTest:…
Browse files Browse the repository at this point in the history
…:testNested()
  • Loading branch information
zozlak committed Apr 7, 2021
1 parent d3b1666 commit ccbe7ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simpleRdf/Dataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ private function listQuadElement(iQuadCompare | iQuadIterator | callable | null
string $elementFn): Generator {
try {
$spotted = [];
$idx = $this->findMatchingQuads($filter);
// materialize to avoid problems with parallel quads iterations
$idx = iterator_to_array($this->findMatchingQuads($filter));
foreach ($idx as $i) {
$i = $this->quads[$i]->$elementFn();
$flag = true;
Expand Down

0 comments on commit ccbe7ba

Please sign in to comment.