From 561ebad1aaba54f9c43f7b00d856c453a638f4c5 Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Tue, 26 Mar 2024 20:10:12 +0100 Subject: [PATCH] Revert "662 - fix issue with default value for nodefactory" This reverts commit d2488fc5e83129ab11fccab24807fa5b0172ee4b. --- Classes/Parser/NodeFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Parser/NodeFactory.php b/Classes/Parser/NodeFactory.php index 316df7a0..3c278f05 100644 --- a/Classes/Parser/NodeFactory.php +++ b/Classes/Parser/NodeFactory.php @@ -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()); } } }