Skip to content

Commit b2d179f

Browse files
authored
Merge pull request #2 from PhantPHP/Fix-unzip-from-download
Fix file download
2 parents 3fcb502 + 172e328 commit b2d179f

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
@@ -55,7 +55,7 @@ public static function cleanFilename(string $fileName): string
5555
return $fileName . '.' . $extension;
5656
}
5757

58-
public static function download(string $distantPath, ?string $localPath = null): self
58+
public static function download(string $distantPath, ?string $localPath = null): string
5959
{
6060
if (!$localPath) {
6161
$localPath = self::getTemoraryDirectory() . date('Y-m-d_H-i-s') . '-' . self::cleanFilename($distantPath);

0 commit comments

Comments
 (0)