From 172e3281a74c33e0cb36b7fa2004c816f5e4eb23 Mon Sep 17 00:00:00 2001 From: Lenny ROUANET Date: Thu, 15 Sep 2022 17:09:25 +0200 Subject: [PATCH] Fix --- component/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/File.php b/component/File.php index 79c333d..31e7ddc 100644 --- a/component/File.php +++ b/component/File.php @@ -55,7 +55,7 @@ public static function cleanFilename(string $fileName): string return $fileName . '.' . $extension; } - public static function download(string $distantPath, ?string $localPath = null): self + public static function download(string $distantPath, ?string $localPath = null): string { if (!$localPath) { $localPath = self::getTemoraryDirectory() . date('Y-m-d_H-i-s') . '-' . self::cleanFilename($distantPath);