php_excel
php_excel copied to clipboard
Error when trying to hide a sheet with setHidden(true)
Hello, built on PHP 8.1 getting: Uncaught Error: Call to a member function setHidden() on bool
when calling:
$ex->getSheetByName("ttemplate")->setHidden(true);
$ex->getSheetByName("LOOKUPS")->setHidden(true);
It worked with previous versions. Any idea?
Hi,
seems like one of those two calls already fails and returns false (instead of a sheet instance):
$ex->getSheetByName("ttemplate");
$ex->getSheetByName("LOOKUPS");
... in the subsequent step you are then calling setHidden() on false.