Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Conversation

goncons
Copy link
Contributor

@goncons goncons commented Jul 6, 2014

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();

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();
@frost-nzcr4
Copy link
Contributor

@MarkBaker LGTM. I don't use method getCalculatedValue() because of @deprecated tag, but looking at other writers I can say that it used everywhere.

MarkBaker pushed a commit that referenced this pull request Jul 14, 2014
Open Document cell with not numeric formula
@MarkBaker MarkBaker merged commit 0e14e41 into PHPOffice:develop Jul 14, 2014
@MarkBaker
Copy link
Member

Thanks for the bugfix

@Progi1984 Progi1984 added this to the 1.8.0 milestone Aug 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants