Skip to content

Commit 2acb9c6

Browse files
committed
Merge pull request #6 from PHPOffice/develop
Version 0.2.2
2 parents baf28eb + 0bcc9d8 commit 2acb9c6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@
1818

1919
### Features
2020
- Added XMLReader from PHPWord
21+
22+
## 0.2.2
23+
24+
### BugFix
25+
- Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54"

src/Common/XMLReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getDomFromZip($zipFile, $xmlFile)
5151
throw new \Exception('Cannot find archive file.');
5252
}
5353

54-
$zip = new ZipArchive();
54+
$zip = new \ZipArchive();
5555
$zip->open($zipFile);
5656
$content = $zip->getFromName($xmlFile);
5757
$zip->close();
@@ -186,4 +186,4 @@ public function elementExists($path, \DOMElement $contextNode = null)
186186
{
187187
return $this->getElements($path, $contextNode)->length > 0;
188188
}
189-
}
189+
}

0 commit comments

Comments
 (0)