Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1c8edc5

Browse files
authored
Allow returning null from NormalizerInterface::normalize
1 parent7064ff3 commit1c8edc5

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 notan attempted type for the normalizer
35+
* @throws InvalidArgumentException Occurs when the object given is nota 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)

[8]ページ先頭

©2009-2025 Movatter.jp