Skip to content

Commit 0443eed

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Update custom_normalizer.rst
2 parents 591de57 + dfd0c43 commit 0443eed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serializer/custom_normalizer.rst

+2-2
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)