mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 07:46:09 +00:00
Merge remote-tracking branch 'origin/master' into 7.0.x
This commit is contained in:
@@ -95,7 +95,7 @@ class JmsSerializer implements SerializerInterface
|
||||
break;
|
||||
case 'DateTime':
|
||||
case '\DateTime':
|
||||
return new DateTime($data);
|
||||
return is_null($data) ? null :new DateTime($data);
|
||||
default:
|
||||
throw new RuntimeException(sprintf("Type %s is unsupported", $type));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user