From 3dac7d7e9fdd1ec8f8032021ac7cf361ee950de8 Mon Sep 17 00:00:00 2001 From: Antoine Guigan Date: Sat, 24 May 2014 16:52:01 +0200 Subject: [PATCH] Corrected bug with values without style --- src/Xlsx/ValueTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xlsx/ValueTransformer.php b/src/Xlsx/ValueTransformer.php index 83723bf..fdf1468 100644 --- a/src/Xlsx/ValueTransformer.php +++ b/src/Xlsx/ValueTransformer.php @@ -87,7 +87,7 @@ public function transform($value, $type, $style) return rtrim($this->sharedStrings->get($value)); case '': case static::TYPE_NUMBER : - return Styles::FORMAT_DATE === $this->styles->get($style) + return $style && (Styles::FORMAT_DATE === $this->styles->get($style)) ? $this->dateTransformer->transform($value) : $value * 1; default :