mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-07-30 20:20:11 +02:00
fix deprecation use
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PhpZip\Tests;
|
||||
|
||||
use PhpZip\Constants\ZipCompressionMethod;
|
||||
use PhpZip\Exception\ZipException;
|
||||
use PhpZip\Tests\Internal\DummyFileSystemStream;
|
||||
use PhpZip\ZipFile;
|
||||
@@ -38,7 +39,7 @@ class Issue24Test extends ZipTestCase
|
||||
$zip->addFromString(
|
||||
'file.txt',
|
||||
$fileContents,
|
||||
ZipFile::METHOD_DEFLATED
|
||||
ZipCompressionMethod::DEFLATED
|
||||
);
|
||||
$zip->saveAsFile($this->outputFilename);
|
||||
$zip->close();
|
||||
|
Reference in New Issue
Block a user