In my app I needed to build a custom header rows. It was much easier, and
the code intent was much clearer to pass-in fully formed cells (with all
the formatting applied to them), than it was to set the cell value, and
then find the cell and set its format properties after.

BTW, thank you for ExcelAnt, it has made dealing with PHPExcel much easier!

-dan


On Tue, Oct 22, 2013 at 5:19 AM, Rémy GAZELOT <notifications@github.com>wrote:

> In lib/ExcelAnt/Table/Table.php:
>
> > @@ -374,6 +374,8 @@ private function createNewRow(array $data, $index, StyleCollection $styles = nul
> >
> >              if (null === $value) {
> >                  $cell = new EmptyCell();
> > +            } elseif ($value instanceof Cell) {
>
> Why $value can be an instance of Cell ? $valuecome from $data in
> Table::setRow which is a php array without CellInterace inside.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Wisembly/ExcelAnt/pull/13/files#r7124928>
> .
>