throw $exception;
} $context['not_normalizable_value_exceptions'
][] =
$exception;
$params[] =
$parameterData;
} unset($data[$key]);
} elseif (\
array_key_exists($key,
$context[static::DEFAULT_CONSTRUCTOR_ARGUMENTS
][$class] ??
[])) { $params[] =
$context[static::DEFAULT_CONSTRUCTOR_ARGUMENTS
][$class][$key];
} elseif (\
array_key_exists($key,
$this->defaultContext
[self::DEFAULT_CONSTRUCTOR_ARGUMENTS
][$class] ??
[])) { $params[] =
$this->defaultContext
[self::DEFAULT_CONSTRUCTOR_ARGUMENTS
][$class][$key];
} elseif ($constructorParameter->
isDefaultValueAvailable()) { $params[] =
$constructorParameter->
getDefaultValue();
} elseif (!
($context[self::REQUIRE_ALL_PROPERTIES
] ??
$this->defaultContext
[self::REQUIRE_ALL_PROPERTIES
] ?? false
) &&
$constructorParameter->
hasType() &&
$constructorParameter->
getType()->
allowsNull()) { $params[] = null;
} else { if (!
isset($context['not_normalizable_value_exceptions'
])) { $missingConstructorArguments[] =
$constructorParameter->name;
continue;
} $exception = NotNormalizableValueException::
createForUnexpectedDataType( sprintf('Failed to create object because the class misses the "%s" property.',
$constructorParameter->name
),