| @@ 174-178 (lines=5) @@ | ||
| 171 | } |
|
| 172 | ||
| 173 | if (is_array($data) === true) { |
|
| 174 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 175 | if (isset($data[$type_name])) { |
|
| 176 | settype($data[$type_name], $type); |
|
| 177 | } |
|
| 178 | } |
|
| 179 | } elseif (is_object($data)) { |
|
| 180 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 181 | if (isset($data->{$type_name})) { |
|
| @@ 180-184 (lines=5) @@ | ||
| 177 | } |
|
| 178 | } |
|
| 179 | } elseif (is_object($data)) { |
|
| 180 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 181 | if (isset($data->{$type_name})) { |
|
| 182 | settype($data->{$type_name}, $type); |
|
| 183 | } |
|
| 184 | } |
|
| 185 | } |
|
| 186 | ||
| 187 | return $data; |
|