| @@ 153-157 (lines=5) @@ | ||
| 150 | } |
|
| 151 | ||
| 152 | if (\is_array($data) === true) { |
|
| 153 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 154 | if (isset($data[$type_name])) { |
|
| 155 | settype($data[$type_name], $type); |
|
| 156 | } |
|
| 157 | } |
|
| 158 | } elseif (\is_object($data)) { |
|
| 159 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 160 | if (isset($data->{$type_name})) { |
|
| @@ 159-163 (lines=5) @@ | ||
| 156 | } |
|
| 157 | } |
|
| 158 | } elseif (\is_object($data)) { |
|
| 159 | foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) { |
|
| 160 | if (isset($data->{$type_name})) { |
|
| 161 | \settype($data->{$type_name}, $type); |
|
| 162 | } |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | return $data; |
|