Skip to content

Commit

Permalink
Support new symfony serializer's getSupportedTypes (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmikalkenas authored Aug 19, 2023
1 parent 9a8f28a commit 227990b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Bundle/JoseFramework/Serializer/JWESerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ public function __construct(
$this->serializerManager = $serializerManager;
}

public function getSupportedTypes(?string $format): array

Check failure on line 29 in src/Bundle/JoseFramework/Serializer/JWESerializer.php

View workflow job for this annotation

GitHub Actions / 3️⃣ Static Analysis

Method Jose\Bundle\JoseFramework\Serializer\JWESerializer::getSupportedTypes() return type has no value type specified in iterable type array.
{
return [
JWE::class => class_exists(JWESerializerManager::class) && $this->formatSupported($format),
];
}

public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
{
return $type === JWE::class
Expand Down
7 changes: 7 additions & 0 deletions src/Bundle/JoseFramework/Serializer/JWSSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ public function __construct(
$this->serializerManager = $serializerManager;
}

public function getSupportedTypes(?string $format): array

Check failure on line 29 in src/Bundle/JoseFramework/Serializer/JWSSerializer.php

View workflow job for this annotation

GitHub Actions / 3️⃣ Static Analysis

Method Jose\Bundle\JoseFramework\Serializer\JWSSerializer::getSupportedTypes() return type has no value type specified in iterable type array.
{
return [
JWS::class => class_exists(JWSSerializerManager::class) && $this->formatSupported($format),
];
}

public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
{
return $type === JWS::class
Expand Down

0 comments on commit 227990b

Please sign in to comment.