mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-01 21:19:18 +00:00
Update listWorksheetNames() and listWorksheetInfo() to accept ChartSheet information
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user