diff --git a/src/PKPass.php b/src/PKPass.php index aec04e3..af4a87f 100644 --- a/src/PKPass.php +++ b/src/PKPass.php @@ -447,7 +447,7 @@ protected function createZip($manifest, $signature) // Package file in Zip (as .pkpass) $zip = new ZipArchive(); $filename = tempnam($this->tempPath, 'pkpass'); - if (!$zip->open($filename, ZipArchive::CREATE)) { + if (!$zip->open($filename, ZipArchive::OVERWRITE)) { throw new PKPassException('Could not open ' . basename($filename) . ' with ZipArchive extension.'); } $zip->addFromString('signature', $signature);