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?
Calling PhpOffice\PhpSpreadsheet\Cell::getFormattedValue on a number cell must return the actual number value (but string typed).
What is the current behavior?
Calling PhpOffice\PhpSpreadsheet\Cell::getFormattedValue on a number cell return 'GENERAL' value.
Thank you for providing the sample file. This seems very similar to issue #2239 which was fixed by PR #2242. The issue was reported, and therefore fixed, only for Xls. Apparently it needs to be dealt with for Xlsx as well. Working on it.
oleibman
added a commit
to oleibman/PhpSpreadsheet
that referenced
this issue
Dec 17, 2021
* General Style Specified in Uppercase in Input Xlsx
Fix#2450. Treat input style GENERAL as if it were expected upper/lowercase.
* Declare Method as Static
Surprised neither Phpstan nor Scrutinizer flagged this.
* Remove Duplicated Statement
Don't know why Scrutinizer didn't flag this the first time.
This is:
What is the expected behavior?
Calling
PhpOffice\PhpSpreadsheet\Cell::getFormattedValue
on a number cell must return the actual number value (but string typed).What is the current behavior?
Calling
PhpOffice\PhpSpreadsheet\Cell::getFormattedValue
on a number cell return 'GENERAL' value.What are the steps to reproduce?
With this file: persons.xlsx
and this code:
with the version 1.17.1, the result is:
but with the version 1.18.0 and older, the result is :
Which versions of PhpSpreadsheet and PHP are affected?
1.18.0 and older.
Thank you
The text was updated successfully, but these errors were encountered: