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
- [ x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
getMergeCells returns an array with all merged cells in the sheet
What is the current behavior?
getMergeCells returns empty value
What are the steps to reproduce?
<?phprequire__DIR__ . '/vendor/autoload.php';
// Open Excel file$spreadSheetFile = "Template.xls"$reader = IOFactory::createReaderForFile($spreadSheetFile);$reader->setReadDataOnly(true);$spreadsheet = $reader->load($spreadSheetFile);// Get first sheet$formSheet = $spreadsheet -> getSheet(0);$merged = $formSheet -> getMergeCells();if(!empty($merged)) { foreach($merged as $merge) { var_dump($merge); }}### What features do you think are causing the issue- [X] Reader- [ ] Writer- [ ] Styles- [ ] DataValidations- [ ] FormulaCalculations- [ ] Charts- [ ] AutoFilter- [ ] FormElements### Does an issue affect all spreadsheet file formats? If not, which formats are affected?I don't know.I tried with the one attached[Template.xlsx](https://github.com/user-attachments/files/17374218/Template.xlsx)### Which versions of PhpSpreadsheet and PHP are affected?PhpSpreadsheet3.3.0PHP8.2
The text was updated successfully, but these errors were encountered:
This is:
What is the expected behavior?
getMergeCells returns an array with all merged cells in the sheet
What is the current behavior?
getMergeCells returns empty value
What are the steps to reproduce?
The text was updated successfully, but these errors were encountered: