1
2I found a workaround by using setCellValueExplicit()
3eg:
4
5$sheet->setColumnFormat(array( //se formatea la columna a texto
6 'C' => \PHPExcel_Style_NumberFormat::FORMAT_TEXT,
7 'I' => 'dd-mm-yyyy hh:mm'
8));
9
10$sheet->setCellValueExplicit('C10', $object->card_number, \PHPExcel_Cell_DataType::TYPE_STRING);
11
12Hope this helps ;)