We have downloaded and installed KR Pro via zip file.
We're trying to generate multiple reports from the same array. Example:
[
["ID"],
[1]
]
Our report exports successfully to CSV, PNG and PDF.
However, when trying to export to XLSX, we get the error:
"message": "Trying to access array offset on value of type int",
"exception": "ErrorException",
"file": "(...)/koolreport/excel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DefaultValueBinder.php",
"line": 58,
It happens when PhpOffice\PhpSpreadsheet\Cell\DefaultValueBinder::dataTypeForValue
takes $value = (int) 1
as an input
This is the line that throws the error. It comes before making sure $pValue is not an integer:
} elseif ($pValue[0] === '=' && strlen($pValue) > 1) {
The thing is, this has been corrected in PhpOffice in july 2019:
https://github.com/PHPOffice/PhpSpreadsheet/commit/a691516664f48790bec8e4f2005e37cc0215cd82
Is it expected that PHPoffice will be updated in the KRPro zip pack anytime to avoid this error?