Skip to content

Commit 29a9c87

Browse files
authored
Merge pull request #7 from stephanedelprat/patch-1
Allow denormalize for null
2 parents 1cde16b + 4965c54 commit 29a9c87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Normalizer/RecursiveReflectionNormalizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ private function normalizeValue($data)
7171
{
7272
switch (true) {
7373
case is_scalar($data):
74+
case null === $data:
7475
return $data;
7576

7677
case is_array($data):

0 commit comments

Comments
 (0)