Merge pull request #2 from lijupm/active_sheet_support

Type casting active sheet index
This commit is contained in:
Liju P M 2017-02-22 15:50:01 +05:30 committed by GitHub
commit da2af9283c

View File

@ -85,7 +85,7 @@ class SheetHelper
if ($xmlReader->openFileInZip($this->filePath, self::WORKBOOK_XML_FILE_PATH)) {
while ($xmlReader->read()) {
if ($xmlReader->isPositionedOnStartingNode('workbookView')) {
$activeSheetIndex = $xmlReader->getAttribute('activeTab');
$activeSheetIndex = (int) $xmlReader->getAttribute('activeTab');
}
}
$xmlReader->close();