| @@ 267-271 (lines=5) @@ | ||
| 264 | } |
|
| 265 | ||
| 266 | if (\is_array($data) === true) { |
|
| 267 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 268 | if (isset($data[$type_name])) { |
|
| 269 | \settype($data[$type_name], $type); |
|
| 270 | } |
|
| 271 | } |
|
| 272 | } elseif (\is_object($data)) { |
|
| 273 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 274 | if (isset($data->{$type_name})) { |
|
| @@ 273-277 (lines=5) @@ | ||
| 270 | } |
|
| 271 | } |
|
| 272 | } elseif (\is_object($data)) { |
|
| 273 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 274 | if (isset($data->{$type_name})) { |
|
| 275 | \settype($data->{$type_name}, $type); |
|
| 276 | } |
|
| 277 | } |
|
| 278 | } |
|
| 279 | ||
| 280 | return $data; |
|