Skip to content

Commit

Permalink
Fix encode method with Symfony v6 (#69)
Browse files Browse the repository at this point in the history
```
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
```
  • Loading branch information
BafS authored Jun 30, 2022
1 parent dc5de44 commit b6b6baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/Symfony/Serializer/AvroSerDeEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function supportsDecoding($format): bool
* @throws \AvroSchemaParseException
* @throws \FlixTech\SchemaRegistryApi\Exception\SchemaRegistryException
*/
public function encode($data, $format, array $context = [])
public function encode($data, $format, array $context = []): string
{
$this->validateEncodeContext($context);

Expand Down

0 comments on commit b6b6baa

Please sign in to comment.