diff --git a/src/Utils.php b/src/Utils.php index b23d6fa..06eb7b7 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -23,7 +23,7 @@ public static function writeFile($data, string $path, string $filename, string $ $file = fopen($path . $filename, $mode); - if ($file) { + if ($file != false) { fwrite($file, $data); fclose($file); } else {