Skip to content

Commit 62c66b5

Browse files
mttschfabpot
authored andcommitted
[Serializer] Remove unused variable
1 parent 5e9ea6e commit 62c66b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ private function updateData(array $data, string $attribute, mixed $attributeValu
10531053
*/
10541054
private function isMaxDepthReached(array $attributesMetadata, string $class, string $attribute, array &$context): bool
10551055
{
1056-
if (!($enableMaxDepth = $context[self::ENABLE_MAX_DEPTH] ?? $this->defaultContext[self::ENABLE_MAX_DEPTH] ?? false)
1056+
if (!($context[self::ENABLE_MAX_DEPTH] ?? $this->defaultContext[self::ENABLE_MAX_DEPTH] ?? false)
10571057
|| !isset($attributesMetadata[$attribute]) || null === $maxDepth = $attributesMetadata[$attribute]?->getMaxDepth()
10581058
) {
10591059
return false;

0 commit comments

Comments
 (0)