Skip to content

Commit

Permalink
added decode() return type to match symfony 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kandrejevs2 authored Jul 31, 2024
1 parent ffeab36 commit 107c38e
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 @@ -32,7 +32,7 @@ public function __construct(RecordSerializer $recordSerializer)
*
* @throws \FlixTech\SchemaRegistryApi\Exception\SchemaRegistryException
*/
public function decode($data, $format, array $context = [])
public function decode($data, $format, array $context = []): mixed
{
$readersSchema = $context[self::CONTEXT_DECODE_READERS_SCHEMA] ?? null;
Assert::that($readersSchema)->nullOr()->isInstanceOf(\AvroSchema::class);
Expand Down

0 comments on commit 107c38e

Please sign in to comment.