Update listWorksheetNames() and listWorksheetInfo() to accept ChartSheet information

This commit is contained in:
MarkBaker 2022-05-17 15:44:24 +02:00
parent c66baa44ea
commit e02f25bf48
1 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,10 @@ class Xlsx extends BaseReader
$worksheets = [];
foreach ($relsWorkbook->Relationship as $elex) {
$ele = self::getAttributes($elex);
if ((string) $ele['Type'] === "$namespace/worksheet") {
if (
((string) $ele['Type'] === "$namespace/worksheet") ||
((string) $ele['Type'] === "$namespace/chartsheet")
) {
$worksheets[(string) $ele['Id']] = $ele['Target'];
}
}