Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c8edc5

Browse files
authored
Allow returning null from NormalizerInterface::normalize
1 parent 7064ff3 commit 1c8edc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ interface NormalizerInterface
3030
* @param string $format Format the normalization result will be encoded as
3131
* @param array $context Context options for the normalizer
3232
*
33-
* @return array|string|int|float|bool
33+
* @return array|string|int|float|bool|null
3434
*
35-
* @throws InvalidArgumentException Occurs when the object given is not an attempted type for the normalizer
35+
* @throws InvalidArgumentException Occurs when the object given is not a supported type for the normalizer
3636
* @throws CircularReferenceException Occurs when the normalizer detects a circular reference when no circular
3737
* reference handler can fix it
3838
* @throws LogicException Occurs when the normalizer is not called in an expected context

0 commit comments

Comments
 (0)