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

Commitb60b22e

Browse files
committed
minor#13754 Fix supportsNormalization parameters definition (mathieu-ducrot)
This PR was merged into the 4.4 branch.Discussion----------Fix supportsNormalization parameters definition## DescriptionAdd **$context** parameter in code example which is needed in Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface supportsNormalization definition.In 3.4 documentation this was not needed because the example code implements NormalizerInterface vs ContextAwareNormalizerInterface since 4.4.Commits-------f3b4364 Fix supportsNormalization parameters definition
2 parents70025b1 +f3b4364 commitb60b22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎serializer/custom_normalizer.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
4747
return $data;
4848
}
4949

50-
public function supportsNormalization($data, $format = null)
50+
public function supportsNormalization($data, $format = null, array $context = [])
5151
{
5252
return $data instanceof Topic;
5353
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp