Skip to content

Commit 30d8020

Browse files
committed
Dataset.php: typos in typehints fixed
1 parent 382e987 commit 30d8020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simpleRdf/Dataset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private function unset(QuadCompareInterface | callable $offset): void {
272272
}
273273

274274
public function map(callable $fn,
275-
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable $filter | null = null): Dataset {
275+
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable | null $filter = null): Dataset {
276276
$ret = new Dataset();
277277
$idx = $this->findMatchingQuads($filter);
278278
foreach ($idx as $i) {
@@ -282,7 +282,7 @@ public function map(callable $fn,
282282
}
283283

284284
public function reduce(callable $fn, $initialValue = null,
285-
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable $filter | null = null): mixed {
285+
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable | null $filter = null): mixed {
286286
$idx = $this->findMatchingQuads($filter);
287287
foreach ($idx as $i) {
288288
$initialValue = $fn($initialValue, $this->quads[$i], $this);

0 commit comments

Comments
 (0)