Skip to content

Commit 84ad532

Browse files
committed
Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54"
1 parent 91d3814 commit 84ad532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/XMLReader.php

Lines changed: 1 addition & 1 deletion
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();

0 commit comments

Comments
 (0)