[Serializer] Check the value of enable_max_depth if defined
This commit is contained in:
parent
985ef53b51
commit
e88e0f30f1
@ -333,6 +333,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
|
|||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
!isset($context[static::ENABLE_MAX_DEPTH]) ||
|
!isset($context[static::ENABLE_MAX_DEPTH]) ||
|
||||||
|
!$context[static::ENABLE_MAX_DEPTH] ||
|
||||||
!isset($attributesMetadata[$attribute]) ||
|
!isset($attributesMetadata[$attribute]) ||
|
||||||
null === $maxDepth = $attributesMetadata[$attribute]->getMaxDepth()
|
null === $maxDepth = $attributesMetadata[$attribute]->getMaxDepth()
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user