Browse Source

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>
tags/v24.0.0beta1
Côme Chilliet 2 years ago
parent
commit
ec4fff20e8
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/lib/Archive/ZIPTest.php

+ 1
- 1
tests/lib/Archive/ZIPTest.php View File

@@ -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');
}
}

Loading…
Cancel
Save