From ac3533dece5bfbfdfcb9ec0693f4fbeb9db90157 Mon Sep 17 00:00:00 2001 From: Ne-Lexa Date: Sun, 16 May 2021 23:40:27 +0300 Subject: [PATCH] fix test --- src/ZipFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZipFile.php b/src/ZipFile.php index e339919..6dc6c3d 100644 --- a/src/ZipFile.php +++ b/src/ZipFile.php @@ -516,7 +516,7 @@ class ZipFile implements ZipFileInterface $zipData->copyDataToStream($handle); } catch (ZipException $e) { if (is_file($file)) { - unlink($file); + @unlink($file); } throw $e; @@ -1633,7 +1633,7 @@ class ZipFile implements ZipFileInterface if (!@rename($tempFilename, $filename)) { if (is_file($tempFilename)) { - unlink($tempFilename); + @unlink($tempFilename); } throw new ZipException(sprintf('Cannot move %s to %s', $tempFilename, $filename));