| @@ 242-246 (lines=5) @@ | ||
| 239 | } |
|
| 240 | ||
| 241 | if (\is_array($data) === true) { |
|
| 242 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 243 | if (isset($data[$type_name])) { |
|
| 244 | \settype($data[$type_name], $type); |
|
| 245 | } |
|
| 246 | } |
|
| 247 | } elseif (\is_object($data)) { |
|
| 248 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 249 | if (isset($data->{$type_name})) { |
|
| @@ 248-252 (lines=5) @@ | ||
| 245 | } |
|
| 246 | } |
|
| 247 | } elseif (\is_object($data)) { |
|
| 248 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 249 | if (isset($data->{$type_name})) { |
|
| 250 | \settype($data->{$type_name}, $type); |
|
| 251 | } |
|
| 252 | } |
|
| 253 | } |
|
| 254 | ||
| 255 | return $data; |
|