diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-16 09:58:40 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-16 09:58:40 +0100 |
commit | ec4fff20e848840ceeceac269981b60d27ba9974 (patch) | |
tree | 0580b89e20137b3cb2fb44cfe1e65da36510d90d /tests | |
parent | e053feb5db40e0f07eb14c2d06686d66af001bb4 (diff) | |
download | nextcloud-server-ec4fff20e848840ceeceac269981b60d27ba9974.tar.gz nextcloud-server-ec4fff20e848840ceeceac269981b60d27ba9974.zip |
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')
-rw-r--r-- | tests/lib/Archive/ZIPTest.php | 2 |
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'); } } |