From 27321066209ee7e4d2bee0e2e9449aac62150c50 Mon Sep 17 00:00:00 2001 From: Thomas Hanke Date: Fri, 6 Oct 2023 10:56:46 +0200 Subject: [PATCH] add all missing properties --- .../Component/Serializer/Normalizer/AbstractNormalizer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php index 4fcae7d99cfcc..501b8735ea976 100644 --- a/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php @@ -412,11 +412,13 @@ protected function instantiateObject(array &$data, string $class, array &$contex true ); $context['not_normalizable_value_exceptions'][] = $exception; - - return $reflectionClass->newInstanceWithoutConstructor(); } } + if(count($context['not_normalizable_value_exceptions'])) { + return $reflectionClass->newInstanceWithoutConstructor(); + } + if ($constructor->isConstructor()) { try { return $reflectionClass->newInstanceArgs($params); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy