Skip to content

Commit b6b6baa

Browse files
authored
Fix encode method with Symfony v6 (#69)
``` Declaration of FlixTech\AvroSerializer\Integrations\Symfony\Serializer\AvroSerDeEncoder::encode($data, $format, array $context = []) must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode(mixed $data, string $format, array $context = []): string ```
1 parent dc5de44 commit b6b6baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integrations/Symfony/Serializer/AvroSerDeEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function supportsDecoding($format): bool
5151
* @throws \AvroSchemaParseException
5252
* @throws \FlixTech\SchemaRegistryApi\Exception\SchemaRegistryException
5353
*/
54-
public function encode($data, $format, array $context = [])
54+
public function encode($data, $format, array $context = []): string
5555
{
5656
$this->validateEncodeContext($context);
5757

0 commit comments

Comments
 (0)