src/Viserio/Component/Http/Stream.php
public function close(): void
    {
        if (isset($this->stream)) {
            if (\is_resource($this->stream)) {
                if ($this->isPipe()) {
                    \pclose($this->stream);
                } elseif ($this->streamType === 'ZLIB') {
                    \gzclose($this->stream);
                } else {
                    \fclose($this->stream);
                }
            }

            $this->detach();
        }
    }
public function close(): void
    {
        if (isset($this->stream)) {
            if (\is_resource($this->stream)) {
                if ($this->isPipe()) {
                    \pclose($this->stream);
                } elseif ($this->streamType === 'ZLIB') {
                    \gzclose($this->stream);
                } else {
                    \fclose($this->stream);
                }
            }

            $this->detach();
        }
    }
{@inheritdoc}