public function tell() { $this->assertAttached(); $result = $this->stream->tell(); if (!is_int($result)) { throw new \RuntimeException('An error occurred during the tell operation.'); } return $result; }