5.0.0 - 致命 - 未处理
fopen() expects parameter 1 to be a valid path, bool givenpublic function putFileAs(string $path, File $file, string $name, array $options = [])
{
$stream = fopen($file->getRealPath(), 'r'); //这行报错
}
替换成 $stream = fopen($file->getPathName(), 'r'); 即可
$file->getPathName() 在linux和windows都存在
