Skip to content

Commit

Permalink
Dataset::key(): add return type hint for PHP 8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Jun 9, 2022
1 parent 2648d07 commit 6299730
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 @@ -182,7 +182,7 @@ public function current(): iQuad | null {
return $value === false ? null : $value;
}

public function key() {
public function key(): mixed {
$key = key($this->quads);
if ($key === null) {
throw new OutOfBoundsException();
Expand Down

0 comments on commit 6299730

Please sign in to comment.