You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when updating to 1.8.0: Argument 1 passed to PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles::setStyleBaseData() must be an instance of PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme, null given
#1043
Closed
kissifrot opened this issue
Jul 1, 2019
· 3 comments
TypeError: Argument 1 passed to PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles::setStyleBaseData() must be an instance of PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme, null given, called in vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 584
What are the steps to reproduce?
<?phprequire__DIR__ . '/vendor/autoload.php';
usePhpOffice\PhpSpreadsheet\IOFactory;
$filepath = 'a/valid/xlsx/file';
$reader = IOFactory::createReaderForFile($filepath);
$reader->setReadDataOnly(true);
$spreadsheet = $reader->load($filepath);
// add code that show the issue here...
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet v1.8.0
PHP 7.2.19
The text was updated successfully, but these errors were encountered:
This is:
What is the expected behavior?
No error when loading a (valid) XLSX file
What is the current behavior?
What are the steps to reproduce?
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet v1.8.0
PHP 7.2.19
The text was updated successfully, but these errors were encountered: