This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Serializer/Tests/Normalizer
Fabien Potencier 65b48b5b93 bug #25287 [Serializer] DateTimeNormalizer handling of null and empty values (returning it instead of new object) (Simperfit)
This PR was merged into the 3.3 branch.

Discussion
----------

[Serializer] DateTimeNormalizer handling of null and empty values (returning it instead of new object)

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | no
| Fixed tickets | #23964
| License       | MIT
| Doc PR        |

I'm openning the disucussion on this as I think that should be returning null and not a new object.

WDYT ?

Working at home ;)
![img_2914](https://user-images.githubusercontent.com/3451634/33526107-ec2a6ce8-d83b-11e7-8949-f8d360ebb4b9.JPG)

Commits
-------

74726f3896 [Serializer] DateTimeNormalizer handling of null and empty values (returning null or empty instead of new object)
2018-01-17 09:02:20 +01:00
..
AbstractNormalizerTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
AbstractObjectNormalizerTest.php [Serializer] Fix extra attributes when no group specified 2017-11-05 16:20:19 +01:00
ArrayDenormalizerTest.php Updated PHPUnit namespaces 2017-02-20 13:35:43 +01:00
CustomNormalizerTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
DataUriNormalizerTest.php Updated PHPUnit namespaces 2017-02-20 14:34:33 +01:00
DateTimeNormalizerTest.php [Serializer] DateTimeNormalizer handling of null and empty values (returning null or empty instead of new object) 2018-01-12 14:55:27 +01:00
GetSetMethodNormalizerTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
JsonSerializableNormalizerTest.php Updated PHPUnit namespaces 2017-02-20 14:34:33 +01:00
ObjectNormalizerTest.php [Serializer] Unset attributes when creating child context 2017-12-04 20:08:57 +01:00
PropertyNormalizerTest.php Merge branch '2.8' into 3.2 2017-02-18 18:28:00 +01:00
TestDenormalizer.php fix phpdoc's alignment 2014-12-07 19:24:30 +01:00
TestNormalizer.php fix phpdoc's alignment 2014-12-07 19:24:30 +01:00