Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c8edc5

Browse filesBrowse files
authored
Allow returning null from NormalizerInterface::normalize
1 parent 7064ff3 commit 1c8edc5
Copy full SHA for 1c8edc5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.