Skip to content

Commit

Permalink
Merge d8627ed into 039ba86
Browse files Browse the repository at this point in the history
  • Loading branch information
Oipnet committed Jun 2, 2023
2 parents 039ba86 + d8627ed commit 1296640
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Serializer/AbstractConstraintViolationListNormalizer.php
Expand Up @@ -45,6 +45,13 @@ public function supportsNormalization(mixed $data, string $format = null, array
{
return static::FORMAT === $format && $data instanceof ConstraintViolationListInterface;
}

public function getSupportedTypes(?string $format)
{
return [
ConstraintViolationListInterface::class => $this->hasCacheableSupportsMethod(),
];
}

public function hasCacheableSupportsMethod(): bool
{
Expand Down

0 comments on commit 1296640

Please sign in to comment.