diff --git a/src/Tracy/Dumper/Dumper.php b/src/Tracy/Dumper/Dumper.php index 06bece26a..ba94d0502 100644 --- a/src/Tracy/Dumper/Dumper.php +++ b/src/Tracy/Dumper/Dumper.php @@ -73,7 +73,6 @@ class Dumper \Closure::class => [Exposer::class, 'exposeClosure'], \UnitEnum::class => [Exposer::class, 'exposeEnum'], \ArrayObject::class => [Exposer::class, 'exposeArrayObject'], - \ArrayIterator::class => [Exposer::class, 'exposeArrayIterator'], \SplFileInfo::class => [Exposer::class, 'exposeSplFileInfo'], \SplObjectStorage::class => [Exposer::class, 'exposeSplObjectStorage'], \__PHP_Incomplete_Class::class => [Exposer::class, 'exposePhpIncompleteClass'], diff --git a/src/Tracy/Dumper/Exposer.php b/src/Tracy/Dumper/Exposer.php index 0e72a4242..bc7220774 100644 --- a/src/Tracy/Dumper/Exposer.php +++ b/src/Tracy/Dumper/Exposer.php @@ -19,7 +19,7 @@ final class Exposer { public static function exposeObject(object $obj, Value $value, Describer $describer): void { - $values = get_mangled_object_vars($obj); + $values = (array) $obj; $props = self::getProperties($obj::class); foreach (array_diff_key($values, $props) as $k => $v) { @@ -136,12 +136,6 @@ public static function exposeArrayObject(\ArrayObject $obj, Value $value, Descri } - public static function exposeArrayIterator(\ArrayIterator $obj, Value $value, Describer $describer): void - { - self::exposeObject((object) $obj->getArrayCopy(), $value, $describer); - } - - public static function exposeDOMNode(\DOMNode $obj, Value $value, Describer $describer): void { $props = preg_match_all('#^\s*\[([^\]]+)\] =>#m', print_r($obj, true), $tmp) ? $tmp[1] : [];