Skip to content

Commit

Permalink
Dataset: fix PHP 8.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Oct 24, 2024
1 parent bd95f50 commit 1ddb415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quickRdf/Dataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private function unset(QuadCompareInterface | callable $offset): void {
// DatasetMapReduce

public function map(callable $fn,
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable $filter = null,
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable | null $filter = null,
bool $indexed = false): Dataset {
$ret = new Dataset($indexed);
$quads = $this->findMatchingQuads($filter);
Expand All @@ -334,7 +334,7 @@ public function map(callable $fn,
}

public function reduce(callable $fn, $initialValue = null,
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable $filter = null): mixed {
QuadCompareInterface | QuadIteratorInterface | QuadIteratorAggregateInterface | callable | null $filter = null): mixed {
$quads = $this->findMatchingQuads($filter);
foreach ($quads as $i) {
$initialValue = $fn($initialValue, $i, $this);
Expand Down

0 comments on commit 1ddb415

Please sign in to comment.