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
Recursive denormalize using PropertyInfo
- Fix logical fault for nullables
  • Loading branch information
mihai-stancu authored and Mihai Stancu committed Dec 30, 2015
commit 56a575f69b58c05e2286e10bbe84a3546c8cd4fd
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ protected function denormalizeProperty($data, $class, $name, $format = null, arr
}

foreach ($types as $type) {
if (empty($data) && !$type->isNullable()) {
if ($data === null && $type->isNullable()) {
return $data;
}

Expand Down
0