Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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 <[email protected]>
  • Loading branch information
come-nc committed Dec 16, 2021
commit ec4fff20e848840ceeceac269981b60d27ba9974
2 changes: 1 addition & 1 deletion tests/lib/Archive/ZIPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ protected function getExisting() {
}

protected function getNew() {
return new ZIP(\OC::$server->getTempManager()->getTemporaryFile('.zip'));
return new ZIP(\OC::$server->getTempManager()->getTempBaseDir().'/newArchive.zip');
}
}