Type casting active sheet index

This commit is contained in:
Liju P M 2017-02-22 15:48:44 +05:30
parent c5deceb0b9
commit fd21f8a5dd

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();