Skip to content

Commit

Permalink
Revert "662 - fix issue with default value for nodefactory"
Browse files Browse the repository at this point in the history
This reverts commit d2488fc.
  • Loading branch information
simonschaufi committed Mar 26, 2024
1 parent fbdde15 commit 561ebad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Parser/NodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ public function buildPropertyNode(Property $property): Stmt\Property
foreach ($propertyNode->props as $subNode) {
if ($subNode instanceof PropertyProperty) {
if (null !== $property->getDefaultValueNode()) {
$subNode->setAttribute('default', $property->getDefaultValueNode());
$subNode->default = $property->getDefaultValueNode();
} else {
$subNode->setAttribute('default', self::buildNodeFromValue($property->getDefault()));
$subNode->default = self::buildNodeFromValue($property->getDefault());
}
}
}
Expand Down

0 comments on commit 561ebad

Please sign in to comment.