Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 11:58:40 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 11:58:40 +0300
commitec4fff20e848840ceeceac269981b60d27ba9974 (patch)
tree0580b89e20137b3cb2fb44cfe1e65da36510d90d /tests/lib/Archive
parente053feb5db40e0f07eb14c2d06686d66af001bb4 (diff)
Avoid Deprecation warning from Zip tests on PHP 8.1
It is not allowed anymore to open an empty file as a new zip archive. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Archive')
-rw-r--r--tests/lib/Archive/ZIPTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Archive/ZIPTest.php b/tests/lib/Archive/ZIPTest.php
index 17a639c9f5f..14443471da1 100644
--- a/tests/lib/Archive/ZIPTest.php
+++ b/tests/lib/Archive/ZIPTest.php
@@ -17,6 +17,6 @@ class ZIPTest extends TestBase {
}
protected function getNew() {
- return new ZIP(\OC::$server->getTempManager()->getTemporaryFile('.zip'));
+ return new ZIP(\OC::$server->getTempManager()->getTempBaseDir().'/newArchive.zip');
}
}