From d0c9dc1eb04ceef701f68c1228b10b185984f980 Mon Sep 17 00:00:00 2001 From: soyuka Date: Fri, 11 Oct 2024 12:57:19 +0200 Subject: [PATCH] fix(jsonld): remove deprecated class --- src/JsonLd/Serializer/ErrorNormalizer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/JsonLd/Serializer/ErrorNormalizer.php b/src/JsonLd/Serializer/ErrorNormalizer.php index b5bf3eec6c6..ee2e87f063c 100644 --- a/src/JsonLd/Serializer/ErrorNormalizer.php +++ b/src/JsonLd/Serializer/ErrorNormalizer.php @@ -14,7 +14,6 @@ namespace ApiPlatform\JsonLd\Serializer; use ApiPlatform\State\ApiResource\Error; -use ApiPlatform\Symfony\Validator\Exception\ValidationException as SymfonyValidationException; use ApiPlatform\Validator\Exception\ValidationException; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; @@ -48,7 +47,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { return $this->inner->supportsNormalization($data, $format, $context) - && (is_a($data, Error::class) || is_a($data, ValidationException::class) || is_a($data, SymfonyValidationException::class)); + && (is_a($data, Error::class) || is_a($data, ValidationException::class)); } public function getSupportedTypes(?string $format): array