Skip to content

Commit

Permalink
Dataset::delete(): allow null as a filter
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Nov 22, 2024
1 parent 46cb6e0 commit 474a112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simpleRdf/Dataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function xor(QuadInterface | QuadIteratorInterface | QuadIteratorAggregat
return $ret;
}

public function delete(QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable $filter): Dataset {
public function delete(QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable | null $filter = null): Dataset {
$deleted = new Dataset();
foreach ($this->findMatchingQuads($filter) as $i) {
$deleted->add($this->quads[$i]);
Expand Down

0 comments on commit 474a112

Please sign in to comment.