Skip to content

Commit

Permalink
Merge pull request #31 from BlackbitDevs/patch-1
Browse files Browse the repository at this point in the history
Prevent TypeError in Sheet::isActive()
  • Loading branch information
aVadim483 authored Nov 16, 2024
2 parents 53b2725 + 19d6761 commit 463db0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FastExcelReader/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ public function isActive(): bool
{
if ($this->active === null) {
$this->_readHeader();

if ($this->active === null) {
$this->active = false;
}
}

return $this->active;
Expand Down Expand Up @@ -1757,4 +1761,4 @@ protected function parseExtendedDataValidation(InterfaceXmlReader $xmlReader): a
'formula2' => $formula2
];
}
}
}

0 comments on commit 463db0b

Please sign in to comment.