Skip to content

Commit a0d98a6

Browse files
committed
GRAL-2093: ignore DateTime objects in CamelCaseHelper
1 parent fcb1242 commit a0d98a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Utils/CamelCaseHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ class CamelCaseHelper
66
{
77
public static function keysToCamelCase($input)
88
{
9+
if ($input instanceof \DateTime) {
10+
return $input;
11+
}
12+
913
if (is_object($input)) {
1014
$className = get_class($input);
1115
$obj = new $className;

0 commit comments

Comments
 (0)