Skip to content

Commit

Permalink
Prepare for AnzuSerializer 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pulzarraider committed May 9, 2024
1 parent 63a52a1 commit 3c87974
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Serializer/Handler/Handlers/JwtHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -14,7 +15,7 @@

final class JwtHandler extends AbstractHandler

Check failure on line 16 in src/Serializer/Handler/Handlers/JwtHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

MethodSignatureMismatch

src/Serializer/Handler/Handlers/JwtHandler.php:16:13: MethodSignatureMismatch: Method AnzuSystems\AuthBundle\Serializer\Handler\Handlers\JwtHandler::serialize has more required parameters than parent method AnzuSystems\SerializerBundle\Handler\Handlers\HandlerInterface::serialize (see https://psalm.dev/042)

Check failure on line 16 in src/Serializer/Handler/Handlers/JwtHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

MethodSignatureMismatch

src/Serializer/Handler/Handlers/JwtHandler.php:16:13: MethodSignatureMismatch: Method AnzuSystems\AuthBundle\Serializer\Handler\Handlers\JwtHandler::serialize has more required parameters than parent method AnzuSystems\SerializerBundle\Handler\Handlers\HandlerInterface::serialize (see https://psalm.dev/042)
{
public function serialize(mixed $value, Metadata $metadata): ?string
public function serialize(mixed $value, Metadata $metadata, SerializationContext $context): ?string

Check failure on line 18 in src/Serializer/Handler/Handlers/JwtHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

UndefinedClass

src/Serializer/Handler/Handlers/JwtHandler.php:18:65: UndefinedClass: Class, interface or enum named AnzuSystems\SerializerBundle\Context\SerializationContext does not exist (see https://psalm.dev/019)

Check failure on line 18 in src/Serializer/Handler/Handlers/JwtHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

UndefinedClass

src/Serializer/Handler/Handlers/JwtHandler.php:18:65: UndefinedClass: Class, interface or enum named AnzuSystems\SerializerBundle\Context\SerializationContext does not exist (see https://psalm.dev/019)
{
if (null === $value) {
return null;
Expand Down

0 comments on commit 3c87974

Please sign in to comment.