ZipFileExtended.php 503 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the nelexa/zip package.
  5. * (c) Ne-Lexa <https://github.com/Ne-Lexa/php-zip>
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace PhpZip\Tests\Internal;
  10. use PhpZip\ZipFile;
  11. class ZipFileExtended extends ZipFile
  12. {
  13. protected function onBeforeSave(): void
  14. {
  15. parent::onBeforeSave();
  16. $this->deleteFromRegex('~^META\-INF/~i');
  17. }
  18. }