protected function truncate_after_seek(): void
    {
        if ($this->position > strlen($this->string)) {
            $this->stream_truncate($this->position);
        }
    }
protected function truncate_after_seek(): void
    {
        if ($this->position > strlen($this->string)) {
            $this->stream_truncate($this->position);
        }
    }
protected function truncate_after_seek ( ) : void { if ( $ this -> position > strlen ( $ this -> string ) ) { $ this -> stream_truncate ( $ this -> position ) ; } }
If we've seeked past the end of file, auto truncate.
If we ve seeked past the end of file auto truncate .