diff --git a/src/simpleRdf/Dataset.php b/src/simpleRdf/Dataset.php index ff97542..44a9c27 100644 --- a/src/simpleRdf/Dataset.php +++ b/src/simpleRdf/Dataset.php @@ -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]);