title: Trying to access array offset on value of type int { DefaultValueBinder.php line 82 }
body: <p>I have an export to excel button which downloads excel file.
  However when i click it shows me error as <strong>Trying to access array offset on value of type int</strong></p>
  <p>My code is this:</p>
  <pre><code>public static function dataTypeForValue($pValue = null)
      {
          // Match the value against a few data types
          if ($pValue === null) {
              return PHPExcel_Cell_DataType::TYPE_NULL;
          } elseif ($pValue === '') {
              return PHPExcel_Cell_DataType::TYPE_STRING;
          } elseif ($pValue instanceof PHPExcel_RichText) {
              return PHPExcel_Cell_DataType::TYPE_INLINE;
    } elseif ($pValue[0] === '=' &amp;&amp; strlen($pValue) &gt; 1) {   //error comes in this line
              return PHPExcel_Cell_DataType::TYPE_FORMULA;
          } elseif (is_bool($pValue)) {
              return PHPExcel_Cell_DataType::TYPE_BOOL;
          } elseif (is_float($pValue) || is_int($pValue)) {
              return PHPExcel_Cell_DataType::TYPE_NUMERIC;
          } elseif (preg_match('/^[\+\-]?([0-9]+\\.?[0-9]*|[0-9]*\\.?[0-9]+)([Ee][\-\+]?[0-2]?\d{1,3})?$/', $pValue)) {
              $tValue = ltrim($pValue, '+-');
              if (is_string($pValue) &amp;&amp; $tValue[0] === '0' &amp;&amp; strlen($tValue) &gt; 1 &amp;&amp; $tValue[1] !== '.') {
                  return PHPExcel_Cell_DataType::TYPE_STRING;
              } elseif ((strpos($pValue, '.') === false) &amp;&amp; ($pValue &gt; PHP_INT_MAX)) {
                  return PHPExcel_Cell_DataType::TYPE_STRING;
              }
              return PHPExcel_Cell_DataType::TYPE_NUMERIC;
          } elseif (is_string($pValue) &amp;&amp; array_key_exists($pValue, PHPExcel_Cell_DataType::getErrorCodes())) {
              return PHPExcel_Cell_DataType::TYPE_ERROR;
          }
  
          return PHPExcel_Cell_DataType::TYPE_STRING;
      }
  }
  </code></pre>
  <p>what can be the solution for this..?</p>