[BUGFIX] Show properties of stdClass object in <f:debug>
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Utility / DebuggerUtility.php
index 8c4e07d..0801b47 100644 (file)
@@ -311,8 +311,13 @@ class DebuggerUtility {
                        if (!$plainText) {
                                $dump .= '<a name="' . spl_object_hash($object) . '" id="' . spl_object_hash($object) . '"></a>';
                        }
-                       $classReflection = new \ReflectionClass(get_class($object));
-                       $properties = $classReflection->getProperties();
+                       if (get_class($object) === 'stdClass') {
+                               $objReflection = new \ReflectionObject($object);
+                               $properties = $objReflection->getProperties();
+                       } else {
+                               $classReflection = new \ReflectionClass(get_class($object));
+                               $properties = $classReflection->getProperties();
+                       }
                        foreach ($properties as $property) {
                                if (self::isBlacklisted($property)) {
                                        continue;