Skip to content

Commit 6efd3fc

Browse files
authored
find and replace feature (#16)
Signed-off-by: rahul <[email protected]>
1 parent 55db14e commit 6efd3fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/FileHandler.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ private function renameTempFile(string $tempFilePath, string $filename): void
292292

293293
private function cleanupTempFile(string $tempFilePath): void
294294
{
295-
unlink($tempFilePath);
295+
if (file_exists($tempFilePath)) {
296+
unlink($tempFilePath);
297+
}
296298
}
297299

298300
private function createTempFileWithHeaders(array $headers): string

0 commit comments

Comments
 (0)