Skip to content

Commit 32f1f62

Browse files
committed
Change Settings constants
1 parent d64fc98 commit 32f1f62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PhpWord/Settings.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ class Settings
2929
*
3030
* @const string
3131
*/
32-
const PCLZIP = 'PhpOffice\\PhpWord\\Shared\\ZipArchive';
3332
const ZIPARCHIVE = 'ZipArchive';
33+
const PCLZIP = 'PclZip';
34+
const OLD_LIB = 'PhpOffice\\PhpWord\\Shared\\ZipArchive'; // @deprecated 0.11
3435

3536
/**
3637
* PDF rendering libraries
@@ -160,7 +161,7 @@ public static function getZipClass()
160161
*/
161162
public static function setZipClass($zipClass)
162163
{
163-
if (in_array($zipClass, array(self::PCLZIP, self::ZIPARCHIVE))) {
164+
if (in_array($zipClass, array(self::PCLZIP, self::ZIPARCHIVE, self::OLD_LIB))) {
164165
self::$zipClass = $zipClass;
165166
return true;
166167
}

0 commit comments

Comments
 (0)