Skip to content

Commit cd61db3

Browse files
committed
[Config] Removed implicit cast of ReflectionProperty to string.
1 parent 0f7c133 commit cd61db3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Resource/ReflectionClassResource.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ private function generateSignature(\ReflectionClass $class)
139139
$defaults = $class->getDefaultProperties();
140140

141141
foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
142-
yield $p->getDocComment().$p;
142+
yield $p->getDocComment();
143+
yield $p->isDefault() ? '<default>' : '';
144+
yield $p->isPublic() ? 'public' : 'protected';
145+
yield $p->isStatic() ? 'static' : '';
146+
yield '$'.$p->name;
143147
yield print_r(isset($defaults[$p->name]) && !\is_object($defaults[$p->name]) ? $defaults[$p->name] : null, true);
144148
}
145149
}

0 commit comments

Comments
 (0)