From 28183f3a90179386bfadcd0083129c247ce49fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Huchet?= Date: Wed, 9 Feb 2022 17:04:44 +0100 Subject: [PATCH] Apply fixes from StyleCI (#255) Co-authored-by: StyleCI Bot --- src/Importable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Importable.php b/src/Importable.php index 0cc34f0..065df78 100644 --- a/src/Importable.php +++ b/src/Importable.php @@ -178,7 +178,7 @@ private function importSheet(SheetInterface $sheet, callable $callback = null) private function toStrings($values) { foreach ($values as &$value) { - if ($value instanceof \Datetime) { + if ($value instanceof \DateTime) { $value = $value->format('Y-m-d H:i:s'); } elseif ($value) { $value = (string) $value;