dever 2 years ago
parent
commit
a40ec8ed52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PHPExcel/Cell/DefaultValueBinder.php

+ 1 - 1
src/PHPExcel/Cell/DefaultValueBinder.php

@@ -79,7 +79,7 @@ class PHPExcel_Cell_DefaultValueBinder implements PHPExcel_Cell_IValueBinder
             return PHPExcel_Cell_DataType::TYPE_STRING;
         } elseif ($pValue instanceof PHPExcel_RichText) {
             return PHPExcel_Cell_DataType::TYPE_INLINE;
-        } elseif ($pValue{0} === '=' && strlen($pValue) > 1) {
+        } elseif (!is_int($pValue) && $pValue[0] === '=' && strlen($pValue) > 1) {
             return PHPExcel_Cell_DataType::TYPE_FORMULA;
         } elseif (is_bool($pValue)) {
             return PHPExcel_Cell_DataType::TYPE_BOOL;