From 3c87974a68e3ad14fe7634fa0360fe07c08b07f2 Mon Sep 17 00:00:00 2001 From: Andrej Hudec Date: Thu, 9 May 2024 12:55:26 +0200 Subject: [PATCH] Prepare for AnzuSerializer 4.0 --- src/Serializer/Handler/Handlers/JwtHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Serializer/Handler/Handlers/JwtHandler.php b/src/Serializer/Handler/Handlers/JwtHandler.php index e35324f..e0d2f74 100644 --- a/src/Serializer/Handler/Handlers/JwtHandler.php +++ b/src/Serializer/Handler/Handlers/JwtHandler.php @@ -4,6 +4,7 @@ namespace AnzuSystems\AuthBundle\Serializer\Handler\Handlers; +use AnzuSystems\SerializerBundle\Context\SerializationContext; use AnzuSystems\SerializerBundle\Exception\SerializerException; use AnzuSystems\SerializerBundle\Handler\Handlers\AbstractHandler; use AnzuSystems\SerializerBundle\Metadata\Metadata; @@ -14,7 +15,7 @@ final class JwtHandler extends AbstractHandler { - public function serialize(mixed $value, Metadata $metadata): ?string + public function serialize(mixed $value, Metadata $metadata, SerializationContext $context): ?string { if (null === $value) { return null;