From bca846b97bd7491b915d1b5d8b42af6a8e0b2aa0 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Mon, 11 Dec 2023 12:38:20 +0100 Subject: [PATCH] Make sure Serializer::denormalize have show what exception it throws --- src/Symfony/Component/Serializer/Serializer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/Serializer/Serializer.php b/src/Symfony/Component/Serializer/Serializer.php index 3b9943740e49b..607dc9963d417 100644 --- a/src/Symfony/Component/Serializer/Serializer.php +++ b/src/Symfony/Component/Serializer/Serializer.php @@ -197,6 +197,7 @@ public function normalize($data, string $format = null, array $context = []) * {@inheritdoc} * * @throws NotNormalizableValueException + * @throws PartialDenormalizationException Occurs when one or more properties of $type fails to denormalize */ public function denormalize($data, string $type, string $format = null, array $context = []) {