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 dfd0c43

Browse filesBrowse files
committed
minor #20922 [Serializer] Update custom_normalizer.rst (jordanaubert)
This PR was merged into the 7.2 branch. Discussion ---------- [Serializer] Update custom_normalizer.rst Update `normalize` signature according to `NormalizerInterface` <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 49a3f18 Update custom_normalizer.rst
2 parents 2e6f336 + 49a3f18 commit dfd0c43
Copy full SHA for dfd0c43

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎serializer/custom_normalizer.rst

Copy file name to clipboardExpand all lines: serializer/custom_normalizer.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ normalization process::
3636
) {
3737
}
3838

39-
public function normalize(mixed $object, ?string $format = null, array $context = []): array
39+
public function normalize(mixed $data, ?string $format = null, array $context = []): array
4040
{
41-
$data = $this->normalizer->normalize($object, $format, $context);
41+
$data = $this->normalizer->normalize($data, $format, $context);
4242

4343
// Here, add, edit, or delete some data:
4444
$data['href']['self'] = $this->router->generate('topic_show', [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.