8000 Recursive denormalize with property info by mihai-stancu · Pull Request #17193 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Recursive denormalize with property info #17193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Comment typo
  • Loading branch information
dunglas committed Dec 30, 2015
commit 9e87f51cf8391ee1da96343f45c2c29bdc48caaa
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function normalize($object, $format = null, array $context = array())
$attributeValue = call_user_func($this->callbacks[$attributeName], $attributeValue);
}

// Recursive call are done at the end of the process to allow @MaxDepth to work
// Recursive calls are done at the end of the process to allow @MaxDepth to work
if (null !== $attributeValue && !is_scalar($attributeValue)) {
$stack[$attributeName] = $attributeValue;
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function normalize($object, $format = null, array $context = array())
$attributeValue = call_user_func($this->callbacks[$attribute], $attributeValue);
}

// Recursive call are done at the end of the process to allow @MaxDepth to work
// Recursive calls are done at the end of the process to allow @MaxDepth to work
if (null !== $attributeValue && !is_scalar($attributeValue)) {
$stack[$attribute] = $attributeValue;
continue;
Expand Down
2 changes: 1 addition & 1 deletion 7F7E src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function normalize($object, $format = null, array $context = array())
$attributeValue = call_user_func($this->callbacks[$property->name], $attributeValue);
}

// Recursive call are done at the end of the process to allow @MaxDepth to work
// Recursive calls are done at the end of the process to allow @MaxDepth to work
if (null !== $attributeValue && !is_scalar($attributeValue)) {
$stack[$property->name] = $attributeValue;
continue;
Expand Down
0