Skip to content

Commit

Permalink
fix: fixed type juggling error
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKoehnen committed Nov 2, 2022
1 parent c2669f5 commit e0ac105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getFileHandle()
public function getContent()
{
$pointerLocation = ftell($this->fileHandle);
if (!$pointerLocation){
if ($pointerLocation === false){
throw new RuntimeException("unable to get current location of the file pointer. exception thrown to prevent unpredictable pointer jumping");
}
rewind($this->fileHandle);
Expand Down

0 comments on commit e0ac105

Please sign in to comment.