| @@ 296-300 (lines=5) @@ | ||
| 293 | } |
|
| 294 | ||
| 295 | if (\is_array($data) === true) { |
|
| 296 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 297 | if (isset($data[$type_name])) { |
|
| 298 | \settype($data[$type_name], $type); |
|
| 299 | } |
|
| 300 | } |
|
| 301 | } elseif (\is_object($data)) { |
|
| 302 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 303 | if (isset($data->{$type_name})) { |
|
| @@ 302-306 (lines=5) @@ | ||
| 299 | } |
|
| 300 | } |
|
| 301 | } elseif (\is_object($data)) { |
|
| 302 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 303 | if (isset($data->{$type_name})) { |
|
| 304 | \settype($data->{$type_name}, $type); |
|
| 305 | } |
|
| 306 | } |
|
| 307 | } |
|
| 308 | ||
| 309 | return $data; |
|