Skip to content

Commit e02f25b

Browse files
author
MarkBaker
committed
Update listWorksheetNames() and listWorksheetInfo() to accept ChartSheet information
1 parent c66baa4 commit e02f25b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/PhpSpreadsheet/Reader/Xlsx.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ public function listWorksheetInfo($filename)
226226
$worksheets = [];
227227
foreach ($relsWorkbook->Relationship as $elex) {
228228
$ele = self::getAttributes($elex);
229-
if ((string) $ele['Type'] === "$namespace/worksheet") {
229+
if (
230+
((string) $ele['Type'] === "$namespace/worksheet") ||
231+
((string) $ele['Type'] === "$namespace/chartsheet")
232+
) {
230233
$worksheets[(string) $ele['Id']] = $ele['Target'];
231234
}
232235
}

0 commit comments

Comments
 (0)