Correct Very Minor Error / Php8.2 Deprecation (#3021)
When Reader/Xlsx/WorkbookView was split off from Reader/Xlsx.php, one statement accidentally brought `!empty($this->loadSheetsOnly)` with it. That property does not exist in WorkbookView, so the test is useless (it is always empty); and, in fact, the caller passes its own version of loadSheetsOnly as a parameter, so it isn't needed even it did exist. In Php8.2, this might be a deprecation, although it hasn't shown up in the GitHub 8.2 tests. Fix it anyhow.
This commit is contained in:
parent
3861f7e37e
commit
131708409b
|
|
@ -29,7 +29,7 @@ class WorkbookView
|
||||||
$this->spreadsheet->setActiveSheetIndex(0);
|
$this->spreadsheet->setActiveSheetIndex(0);
|
||||||
|
|
||||||
$workbookView = $xmlWorkbook->children($mainNS)->bookViews->workbookView;
|
$workbookView = $xmlWorkbook->children($mainNS)->bookViews->workbookView;
|
||||||
if (($readDataOnly !== true || !empty($this->loadSheetsOnly)) && !empty($workbookView)) {
|
if ($readDataOnly !== true && !empty($workbookView)) {
|
||||||
$workbookViewAttributes = self::testSimpleXml(self::getAttributes($workbookView));
|
$workbookViewAttributes = self::testSimpleXml(self::getAttributes($workbookView));
|
||||||
// active sheet index
|
// active sheet index
|
||||||
$activeTab = (int) $workbookViewAttributes->activeTab; // refers to old sheet index
|
$activeTab = (int) $workbookViewAttributes->activeTab; // refers to old sheet index
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue