tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
901 stars 185 forks source link

Change method of opening ZIP files #120

Closed DanBrada closed 1 year ago

DanBrada commented 1 year ago

PHP 8 has deprecated opening empty files for opening zip. This is caused by deprection in libzip 1.6.0. This PR mitigates the issue by changing method of opening ZIP files from ZipArchive::CREATE to ZipArchive::OVERWRITE

Relevant PHP commit Relevant PHP bug report

tschoffelen commented 1 year ago

Thanks for your contribution! Released as version 2.0.2