File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/PhpSpreadsheet/Calculation/TextData Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5
5
use PhpOffice \PhpSpreadsheet \Calculation \ArrayEnabled ;
6
6
use PhpOffice \PhpSpreadsheet \Calculation \Calculation ;
7
7
use PhpOffice \PhpSpreadsheet \Calculation \Functions ;
8
+ use PhpOffice \PhpSpreadsheet \Calculation \Information \ErrorValue ;
8
9
9
10
class Text
10
11
{
@@ -243,7 +244,7 @@ private static function formatValueMode0($cellValue): string
243
244
*/
244
245
private static function formatValueMode1 ($ cellValue ): string
245
246
{
246
- if (is_string ($ cellValue ) && Functions ::isError ($ cellValue ) === false ) {
247
+ if (is_string ($ cellValue ) && ErrorValue ::isError ($ cellValue ) === false ) {
247
248
return Calculation::FORMULA_STRING_QUOTE . $ cellValue . Calculation::FORMULA_STRING_QUOTE ;
248
249
} elseif (is_bool ($ cellValue )) {
249
250
return ($ cellValue ) ? Calculation::$ localeBoolean ['TRUE ' ] : Calculation::$ localeBoolean ['FALSE ' ];
You can’t perform that action at this time.
0 commit comments