@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | $normalized = []; |
28 | 28 | |
29 | - foreach ((array)$data as $property => $value) { |
|
29 | + foreach ((array) $data as $property => $value) { |
|
30 | 30 | $value = $context->root()->normalize($value, $context); |
31 | 31 | |
32 | 32 | if ($value === null && !$context->shouldAddNull()) { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $object = $this->instantiate($type); |
50 | 50 | |
51 | - foreach ((array)$data as $name => $propertyData) { |
|
51 | + foreach ((array) $data as $name => $propertyData) { |
|
52 | 52 | $object->$name = $context->root()->denormalize($propertyData, TypeFactory::mixedType(), $context); |
53 | 53 | } |
54 | 54 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** @var \ArrayAccess&Traversable $denormalized */ |
39 | 39 | $denormalized = new $className; |
40 | 40 | |
41 | - foreach ((array)$data as $key => $value) { |
|
41 | + foreach ((array) $data as $key => $value) { |
|
42 | 42 | $denormalized[$key] = $context->root()->denormalize( |
43 | 43 | $value, |
44 | 44 | $type->isParametrized() ? $type->subType() : TypeFactory::mixedType(), |
@@ -171,7 +171,7 @@ |
||
171 | 171 | if ($type->isArray()) { |
172 | 172 | $denormalized = []; |
173 | 173 | |
174 | - foreach ((array)$data as $key => $value) { |
|
174 | + foreach ((array) $data as $key => $value) { |
|
175 | 175 | $denormalized[$key] = $this->denormalize($value, $type->subType() ?? TypeFactory::mixedType(), $context); |
176 | 176 | } |
177 | 177 |