src/Storage/File/File.php
public function close()
    {
        if (!$this->isOpened()) {
            return;
        }

        $this->unlock();

        if ($this->handle && !fclose($this->handle)) {
            throw new \RuntimeException("Could not close file " . $this->filePath);
        }
    }
public function close()
    {
        if (!$this->isOpened()) {
            return;
        }

        $this->unlock();

        if ($this->handle && !fclose($this->handle)) {
            throw new \RuntimeException("Could not close file " . $this->filePath);
        }
    }
Closes the file

@return void
@throws \RuntimeException