diff --git a/src/Symfony/Component/Serializer/Serializer.php b/src/Symfony/Component/Serializer/Serializer.php index 59943550a5..0259bfeda6 100644 --- a/src/Symfony/Component/Serializer/Serializer.php +++ b/src/Symfony/Component/Serializer/Serializer.php @@ -250,15 +250,6 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz return $normalizer->denormalize($data, $class, $format, $context); } - foreach ($this->normalizers as $normalizer) { - if ( - $normalizer instanceof DenormalizerInterface && - $normalizer->supportsDenormalization($data, $class, $format) - ) { - return $normalizer->denormalize($data, $class, $format, $context); - } - } - throw new UnexpectedValueException(sprintf('Could not denormalize object of type %s, no supporting normalizer found.', $class)); }