Skip to content

Commit

Permalink
Implement getSupportedTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jun 10, 2023
1 parent f95e2c7 commit bc439da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Normalizer/RamseyUuidNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,11 @@ public function supportsDenormalization(mixed $data, string $type, string $forma
{
return \is_string($data) && \is_a($type, UuidInterface::class, true) && Uuid::isValid($data);
}

public function getSupportedTypes(?string $format): array
{
return [
UuidInterface::class => true,
];
}
}

0 comments on commit bc439da

Please sign in to comment.