| @@ 291-295 (lines=5) @@ | ||
| 288 | } |
|
| 289 | ||
| 290 | if (\is_array($data)) { |
|
| 291 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 292 | if (isset($data[$type_name])) { |
|
| 293 | \settype($data[$type_name], $type); |
|
| 294 | } |
|
| 295 | } |
|
| 296 | } elseif (\is_object($data)) { |
|
| 297 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 298 | if (isset($data->{$type_name})) { |
|
| @@ 297-301 (lines=5) @@ | ||
| 294 | } |
|
| 295 | } |
|
| 296 | } elseif (\is_object($data)) { |
|
| 297 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 298 | if (isset($data->{$type_name})) { |
|
| 299 | \settype($data->{$type_name}, $type); |
|
| 300 | } |
|
| 301 | } |
|
| 302 | } |
|
| 303 | ||
| 304 | return $data; |
|