Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHP-Symfony] Fix handling of null date-time parameter
This fixes one of the issue described on #14930, namely that the deserializeString method of the generated class JsmSerializer returns null for other types of string, but not for date-time. Instead it returns a DateTime which represents "now" (because that what `new DateTime(null)` does). Consequently when an API declares a date-time parameter as non-required and when that endpoint is called without that parameters, then the user code would end up having "now" instead of "null" for this parameter.
- Loading branch information