Skip to content

Commit 3fcb502

Browse files
authored
Merge pull request #1 from PhantPHP/Fix-unzip-from-download
Fix file download
2 parents ac0764d + b0aa757 commit 3fcb502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ public static function download(string $distantPath, ?string $localPath = null):
6363

6464
file_put_contents($localPath, fopen($distantPath, 'r'));
6565

66-
return new self($localPath);
66+
return $localPath;
6767
}
6868
}

0 commit comments

Comments
 (0)