Skip to content

Commit

Permalink
662 - fix issue with default value for nodefactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Kuhlmay committed Feb 15, 2024
1 parent 4562e45 commit d2488fc
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->default = $property->getDefaultValueNode();
$subNode->setAttribute('default', $property->getDefaultValueNode());
} else {
$subNode->default = self::buildNodeFromValue($property->getDefault());
$subNode->setAttribute('default', self::buildNodeFromValue($property->getDefault()));
}
}
}
Expand Down

0 comments on commit d2488fc

Please sign in to comment.