This is:
- [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?
Loading a spreadsheet via reader
What is the current behavior?
PHP Exception
What are the steps to reproduce?
Since upgrading to v 1.15 from v1.5, the following exception happens when trying to load files:
"Tou must specify a Formula value for a Named Formula"
This is traced to NamedFormula.php lines 20-22.
Very similar to Issue #1723
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
<?php
require __DIR__ . '/vendor/autoload.php';
// Create new Spreadsheet object
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
$reader->setReadDataOnly(true);
$spreadsheet = $reader->load($filePath);
Which versions of PhpSpreadsheet and PHP are affected?
PHPSpreadsheet - 1.15
PHP v 7.4.12