Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e88e0f3

Browse filesBrowse files
committed
[Serializer] Check the value of enable_max_depth if defined
1 parent 985ef53 commit e88e0f3
Copy full SHA for e88e0f3

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ private function isMaxDepthReached(array $attributesMetadata, $class, $attribute
333333
{
334334
if (
335335
!isset($context[static::ENABLE_MAX_DEPTH]) ||
336+
!$context[static::ENABLE_MAX_DEPTH] ||
336337
!isset($attributesMetadata[$attribute]) ||
337338
null === $maxDepth = $attributesMetadata[$attribute]->getMaxDepth()
338339
) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.