PHPOffice/PHPExcel — pull request #397 by goncons (2014-07-06 23:18:39+00:00)
Title: Open Document cell with not numeric formula

Trying to write a Open Document with non numeric formula in a cell this exception was generated:
"XMLWriter::writeAttribute() expects parameter 2 to be string, array given"
The problem was that writer was using
PHPExcel_Calculation::getInstance()->calculateCellValue($cell);
instead of
$cell->getCalculatedValue();