tschoffelen / php-pkpass

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

Fix overzealous cleanup when outputting pass #50

Closed mikealmond closed 8 years ago

mikealmond commented 8 years ago

When optimizing I accidentally moved the call to clean() before I grabbed the contents of the file, resulting in a file not found error when trying to generate the file.

FIxes

PHP Warning: file_get_contents(/tmp/PKPass5705b7db21ea86.72513043/pass.pkpass): failed to open stream: No such file or directory in /var/www/public/vendor/pkpass/pkpass/PKPass.php on line 276