Skip to content

Commit

Permalink
feature/countable-file
Browse files Browse the repository at this point in the history
* [core] counting will use `seek` instead of `fseek`
  • Loading branch information
Flaviu Chelaru committed Nov 21, 2021
1 parent a9d7754 commit d5c8aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function tell(): int
*/
public function count()
{
$this->file->fseek(PHP_INT_MAX);
$this->file->seek(PHP_INT_MAX);
return $this->file->key();
}
}

0 comments on commit d5c8aea

Please sign in to comment.