From 572f4c319cb21474f470054736dad9abc7343b22 Mon Sep 17 00:00:00 2001 From: telan Date: Tue, 10 Dec 2019 12:18:12 +0800 Subject: [PATCH] [fix] --- src/Helpers/Helper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Helpers/Helper.php b/src/Helpers/Helper.php index 6351556..0659afe 100644 --- a/src/Helpers/Helper.php +++ b/src/Helpers/Helper.php @@ -14,6 +14,10 @@ class Helper */ public static function cleanFile($filePath) { + if (! file_exists($filePath)) { + return false; + } + $fh = fopen($filePath, 'r+'); if ($fh === false) { return false;