Skip to content

Commit

Permalink
Ignore code in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Apr 17, 2024
1 parent 919c131 commit c0db79e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Helper/StringStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,13 @@ public function tell(): int
throw new StreamException('The stream is detached');
}
$tell = ftell($this->stream);

// this doesn't happen anymore in php 8.3, but is kept here for older versions
/** @codeCoverageIgnoreStart */
if ($tell === false) {
throw new StreamException('Could not retrieve stream position. Is the stream after EOF?');
}
/** @codeCoverageIgnoreEnd */

return $tell;
}
Expand Down

0 comments on commit c0db79e

Please sign in to comment.