We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7c133 commit cd61db3Copy full SHA for cd61db3
Resource/ReflectionClassResource.php
@@ -139,7 +139,11 @@ private function generateSignature(\ReflectionClass $class)
139
$defaults = $class->getDefaultProperties();
140
141
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
142
- yield $p->getDocComment().$p;
+ yield $p->getDocComment();
143
+ yield $p->isDefault() ? '<default>' : '';
144
+ yield $p->isPublic() ? 'public' : 'protected';
145
+ yield $p->isStatic() ? 'static' : '';
146
+ yield '$'.$p->name;
147
yield print_r(isset($defaults[$p->name]) && !\is_object($defaults[$p->name]) ? $defaults[$p->name] : null, true);
148
}
149
0 commit comments