- // TODO: figure out if there's a way to return defaults when target
- // is a class/interface/trait rather than an object.
+ try {
+ $refl = new \ReflectionClass($target);
+ $props = $refl->getDefaultProperties();
+ if (array_key_exists($property->name, $props)) {
+ $suffix = $property->isStatic() ? '' : ' <aside>(default)</aside>';
+
+ return $this->presentRef($props[$property->name]) . $suffix;
+ }
+ } catch (\Exception $e) {
+ // Well, we gave it a shot.
+ }
+