The expression return fopen('gaufrette:...' . $file->key(), 'rb') also could return the type false which is incompatible with the return type mandated by Damax\Media\Domain\Stora...ctStorage::streamFile() of resource.
Loading history...
39
}
40
41
protected function deleteFile(File $file): void
42
{
43
$this->filesystems
44
->get($file->storage())
45
->delete($file->key())
46
;
47
}
48
49
protected function writeFile(string $key, string $storage, $stream): void