iliaal / php_excel

PHP Extension interface to the Excel writing/reading library
http://ilia.ws
533 stars 131 forks source link

PHP 8 version Error #287

Closed mcakmakali closed 1 year ago

mcakmakali commented 1 year ago

Hello, We are encountering an error with PHP 8 version. When will support for PHP 8 be available or how can we resolve the issue?

Fatal error: Array and string offset access syntax with curly braces is no longer supported in 
PHPExcel/Shared/String.php on line 526
Jan-E commented 1 year ago

Wrong repository. You are referring to https://github.com/PHPOffice/PHPExcel/blob/1.8/Classes/PHPExcel/Shared/String.php#L526

Which is the predecessor of PHPSpreadsheet. Change to PHPSpreadsheet or replace every occurrence of {0}, {1} etc. into [0], [1] etc.