|
@@ 291-293 (lines=3) @@
|
| 288 |
|
foreach( $object_vars as $key => $value ) { |
| 289 |
|
|
| 290 |
|
// same instance as parent object |
| 291 |
|
if( $value === $object || in_array( $value, $this->_processed, true ) ) { |
| 292 |
|
$value = 'recursion - parent object [' . get_class( $value ) . ']'; |
| 293 |
|
} |
| 294 |
|
$object_as_array[ $key ] = $this->_convert( $value ); |
| 295 |
|
} |
| 296 |
|
|
|
@@ 319-321 (lines=3) @@
|
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
// same instance as parent object |
| 319 |
|
if( $value === $object || in_array( $value, $this->_processed, true ) ) { |
| 320 |
|
$value = 'recursion - parent object [' . get_class( $value ) . ']'; |
| 321 |
|
} |
| 322 |
|
|
| 323 |
|
$object_as_array[ $type ] = $this->_convert( $value ); |
| 324 |
|
} |