Skip to content

Commit

Permalink
Merge pull request #332 from HaozhouChen/patch-1
Browse files Browse the repository at this point in the history
bugifx Stream::seek method
  • Loading branch information
nyamsprod authored Feb 26, 2019
2 parents 8251bd4 + 28c3a70 commit b1f1516
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,11 @@ public function seek($position)
$this->current();
$this->next();
}

$this->offset--;

if ($position !== 0) {
$this->offset--;
}

$this->current();
}

Expand Down

0 comments on commit b1f1516

Please sign in to comment.