1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-01-17 12:48:28 +01:00
php-zip/tests/Internal/ZipFileExtended.php

24 lines
503 B
PHP
Raw Permalink Normal View History

2019-12-05 19:36:11 +03:00
<?php
2021-02-22 13:12:01 +03:00
declare(strict_types=1);
/*
* This file is part of the nelexa/zip package.
* (c) Ne-Lexa <https://github.com/Ne-Lexa/php-zip>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PhpZip\Tests\Internal;
2019-12-05 19:36:11 +03:00
use PhpZip\ZipFile;
class ZipFileExtended extends ZipFile
{
2021-02-22 13:12:01 +03:00
protected function onBeforeSave(): void
2019-12-05 19:36:11 +03:00
{
parent::onBeforeSave();
$this->deleteFromRegex('~^META\-INF/~i');
}
}