Skip to content

Commit d15ea08

Browse files
committed
minor symfony#60864 [Serializer] Remove unused variable (mttsch)
This PR was submitted for the 7.3 branch but it was merged into the 7.4 branch instead. Discussion ---------- [Serializer] Remove unused variable | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 62c66b5 [Serializer] Remove unused variable
2 parents 5e9ea6e + 62c66b5 commit d15ea08

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)