diff --git a/src/Metadata/Property/Factory/SerializerPropertyMetadataFactory.php b/src/Metadata/Property/Factory/SerializerPropertyMetadataFactory.php index d7412a59268..d80cc055923 100644 --- a/src/Metadata/Property/Factory/SerializerPropertyMetadataFactory.php +++ b/src/Metadata/Property/Factory/SerializerPropertyMetadataFactory.php @@ -58,14 +58,6 @@ public function create(string $resourceClass, string $property, array $options = [$normalizationAttributes, $denormalizationAttributes] = $this->getEffectiveSerializerAttributes($options); - if ($normalizationAttributes && !\is_array($normalizationAttributes)) { - $normalizationAttributes = [$normalizationAttributes]; - } - - if ($denormalizationAttributes && !\is_array($denormalizationAttributes)) { - $denormalizationAttributes = [$denormalizationAttributes]; - } - $ignoredAttributes = $options['ignored_attributes'] ?? []; } catch (ResourceClassNotFoundException) { // TODO: for input/output classes, the serializer groups must be read from the actual resource class