tschoffelen / php-pkpass

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

Change method of opening ZIP files #120

Closed DanBrada closed 2 years ago

DanBrada commented 2 years 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 2 years ago

Thanks for your contribution! Released as version 2.0.2