diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b8da9b..b63fb31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,3 +18,8 @@ ### Features - Added XMLReader from PHPWord + +## 0.2.2 + +### BugFix +- Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54" diff --git a/src/Common/XMLReader.php b/src/Common/XMLReader.php index 3eb7a34..3378447 100644 --- a/src/Common/XMLReader.php +++ b/src/Common/XMLReader.php @@ -51,7 +51,7 @@ public function getDomFromZip($zipFile, $xmlFile) throw new \Exception('Cannot find archive file.'); } - $zip = new ZipArchive(); + $zip = new \ZipArchive(); $zip->open($zipFile); $content = $zip->getFromName($xmlFile); $zip->close(); @@ -186,4 +186,4 @@ public function elementExists($path, \DOMElement $contextNode = null) { return $this->getElements($path, $contextNode)->length > 0; } -} \ No newline at end of file +}