- [x] a bug report - [ ] a feature request - [x] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
Compatibility with PHP8 / reading xlsx file without errors.
What is the current behavior?
After upgrading to PHP8.0.6, we started to get errors when reading xlsx files. Error happens in master,phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php, line 883:
Error reported is "Illegal offset type".
I have printed the value of $comment['authorId'], and it is:
SimpleXMLElement Object (  => 1 )
I could do a workaround by using:
I am not 100% sure this is PHP8 related, but it worked when we use PHP7.4.
What are the steps to reproduce?
Will provide if you cannot reproduce.
Which versions of PhpSpreadsheet and PHP are affected?