Commit f7cf7bc6 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

N'affiche pas les attributs hérités.

No related merge requests found
Showing with 5 additions and 0 deletions
+5 -0
...@@ -27,6 +27,11 @@ class AttributeDecorator implements DecoratorInterface ...@@ -27,6 +27,11 @@ class AttributeDecorator implements DecoratorInterface
{ {
foreach($class->getProperties() as $property) { foreach($class->getProperties() as $property) {
/* @var $property ReflectionProperty */ /* @var $property ReflectionProperty */
if ($property->getDeclaringClass() != $class) {
continue;
}
$node->addAttribute( $node->addAttribute(
new Member( new Member(
$property->getName(), $property->getName(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment