Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
[Definition] ClassDefintion - fix possible bug on addProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Dec 29, 2016
1 parent 149c2d6 commit c11045f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Definition/ClassDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ public function addProperty(Node\Stmt\Property $property)
{
foreach ($property->props as $propertyDefinition) {
$this->properties[$propertyDefinition->name] = $propertyDefinition;
$this->propertyStatements[$propertyDefinition->name] = $property;
}

$this->propertyStatements[$propertyDefinition->name] = $property;
}

/**
Expand Down

1 comment on commit c11045f

@garrettw
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this commit may fix my issue #334.

Please sign in to comment.