From b0aa757d8d194af7e2e97121a45e03af949a6410 Mon Sep 17 00:00:00 2001 From: Lenny ROUANET Date: Thu, 15 Sep 2022 17:02:10 +0200 Subject: [PATCH] Fix file download --- component/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/File.php b/component/File.php index fc5f6cd..79c333d 100644 --- a/component/File.php +++ b/component/File.php @@ -63,6 +63,6 @@ public static function download(string $distantPath, ?string $localPath = null): file_put_contents($localPath, fopen($distantPath, 'r')); - return new self($localPath); + return $localPath; } }