Skip to content

Commit 572f4c3

Browse files
committed
[fix]
1 parent 7c7a587 commit 572f4c3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Helpers/Helper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class Helper
1414
*/
1515
public static function cleanFile($filePath)
1616
{
17+
if (! file_exists($filePath)) {
18+
return false;
19+
}
20+
1721
$fh = fopen($filePath, 'r+');
1822
if ($fh === false) {
1923
return false;

0 commit comments

Comments
 (0)