Skip to content

Commit a7ac633

Browse files
committed
Adjustment to error check in TEXTFROMARRAY() function
1 parent a26a58d commit a7ac633

File tree

1 file changed

+2
-1
lines changed
  • src/PhpSpreadsheet/Calculation/TextData

1 file changed

+2
-1
lines changed

src/PhpSpreadsheet/Calculation/TextData/Text.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PhpOffice\PhpSpreadsheet\Calculation\ArrayEnabled;
66
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
77
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
8+
use PhpOffice\PhpSpreadsheet\Calculation\Information\ErrorValue;
89

910
class Text
1011
{
@@ -243,7 +244,7 @@ private static function formatValueMode0($cellValue): string
243244
*/
244245
private static function formatValueMode1($cellValue): string
245246
{
246-
if (is_string($cellValue) && Functions::isError($cellValue) === false) {
247+
if (is_string($cellValue) && ErrorValue::isError($cellValue) === false) {
247248
return Calculation::FORMULA_STRING_QUOTE . $cellValue . Calculation::FORMULA_STRING_QUOTE;
248249
} elseif (is_bool($cellValue)) {
249250
return ($cellValue) ? Calculation::$localeBoolean['TRUE'] : Calculation::$localeBoolean['FALSE'];

0 commit comments

Comments
 (0)