Skip to content

Commit 26983eb

Browse files
committed
[Serializer] rename the first parameter of NormalizerInterface::normalize from object to data because of type mixed
1 parent aa493f2 commit 26983eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
interface NormalizerInterface
2323
{
2424
/**
25-
* Normalizes an object into a set of arrays/scalars.
25+
* Normalizes data into a set of arrays/scalars.
2626
*
27-
* @param mixed $object Object to normalize
27+
* @param mixed $data Data to normalize
2828
* @param string|null $format Format the normalization result will be encoded as
2929
* @param array $context Context options for the normalizer
3030
*
@@ -36,7 +36,7 @@ interface NormalizerInterface
3636
* @throws LogicException Occurs when the normalizer is not called in an expected context
3737
* @throws ExceptionInterface Occurs for all the other cases of errors
3838
*/
39-
public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null;
39+
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null;
4040

4141
/**
4242
* Checks whether the given class is supported for normalization by this normalizer.

0 commit comments

Comments
 (0)