catch (\Error
$e) { if (($context[self::SKIP_UNINITIALIZED_VALUES
] ??
$this->defaultContext
[self::SKIP_UNINITIALIZED_VALUES
] ?? true
) &&
$this->
isUninitializedValueError($e)) { continue;
} throw $e;
} if ($maxDepthReached) { $attributeValue =
$maxDepthHandler($attributeValue,
$object,
$attribute,
$format,
$attributeContext);
} $stack[$attribute] =
$this->
applyCallbacks($attributeValue,
$object,
$attribute,
$format,
$attributeContext);
} foreach ($stack as $attribute =>
$attributeValue) { $attributeContext =
$this->
getAttributeNormalizationContext($object,
$attribute,
$context);
if (null ===
$attributeValue || \
is_scalar($attributeValue)) { $data =
$this->
updateData($data,
$attribute,
$attributeValue,
$class,
$format,
$attributeContext,
$attributesMetadata,
$classMetadata);
continue;
} if (!
$this->serializer instanceof NormalizerInterface
) {