mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add previous exception to the stack when denormlizing Discriminated Object
This commit is contained in:
parent
803332ba5f
commit
d8ad8c3605
@ -47,7 +47,7 @@ class DiscriminatedObjectDenormalizer implements ContextAwareDenormalizerInterfa
|
||||
}
|
||||
}
|
||||
|
||||
throw new RuntimeException(sprintf('Could not find any denormalizer for those ALLOWED_TYPES: %s', \implode(', ', $context[self::ALLOWED_TYPES])));
|
||||
throw new RuntimeException(sprintf('Could not find any denormalizer for those ALLOWED_TYPES: %s', \implode(', ', $context[self::ALLOWED_TYPES])), previous: $lastException ?? null);
|
||||
}
|
||||
|
||||
public function supportsDenormalization($data, $type, $format = null, array $context = [])
|
||||
|
Loading…
x
Reference in New Issue
Block a user