Skip to content

Commit 81d3561

Browse files
committed
Change method of opening ZIP files
1 parent 002f900 commit 81d3561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PKPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ protected function createZip($manifest, $signature)
447447
// Package file in Zip (as .pkpass)
448448
$zip = new ZipArchive();
449449
$filename = tempnam($this->tempPath, 'pkpass');
450-
if (!$zip->open($filename, ZipArchive::CREATE)) {
450+
if (!$zip->open($filename, ZipArchive::OVERWRITE)) {
451451
throw new PKPassException('Could not open ' . basename($filename) . ' with ZipArchive extension.');
452452
}
453453
$zip->addFromString('signature', $signature);

0 commit comments

Comments
 (0)