From 474a1129edc900a244a32f39f6bd208240d2ad2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=BB=C3=B3=C5=82tak?= Date: Fri, 22 Nov 2024 20:14:10 +0100 Subject: [PATCH] Dataset::delete(): allow null as a filter --- src/simpleRdf/Dataset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);