Skip to content

Commit

Permalink
Fix: Parameter #1 $position (int) of method DBmysqlIterator::seek() i…
Browse files Browse the repository at this point in the history
…s not contravariant with parameter #1 $offset (mixed) of method SeekableIterator::seek().
  • Loading branch information
cedric-anne committed Sep 12, 2022
1 parent 001a5a9 commit d0fe585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DBmysqlIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ public function count(): int
return $this->count;
}

public function seek(int $position): void
public function seek($position): void
{
if ($position < 0 || $position + 1 > $this->count) {
throw new \OutOfBoundsException();
Expand Down

0 comments on commit d0fe585

Please sign in to comment.