Skip to content

Commit

Permalink
Update DictionaryEnumNormalizer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Feb 13, 2024
1 parent 8c55f28 commit 5da307e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Serializer/Normalizer/DictionaryEnumNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ public function supportsNormalization(mixed $data, string $format = null): bool
return $data instanceof DictionaryEnumInterface;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
DictionaryEnumInterface::class => true,
];
}

/**
* @param DictionaryEnumInterface $object
* @param string|null $format
Expand Down

0 comments on commit 5da307e

Please sign in to comment.