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
No account linked to committer's email address
|
|
@@ -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'); |
|
|
|
} |
|
|
|
} |