Skip to content

Commit 74e2343

Browse files
committed
Fix attribute-arrayization
1 parent 136ebfd commit 74e2343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Attribute.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static function fromArray(array $data): static
137137
$data['namespaceURI'],
138138
$data['namespacePrefix'],
139139
$data['attrName'],
140-
$data['attrValue'],
140+
StringValue::fromString($data['attrValue']),
141141
);
142142
}
143143

@@ -193,7 +193,7 @@ public function toArray(): array
193193
'namespaceURI' => $this->getNamespaceURI(),
194194
'namespacePrefix' => $this->getNamespacePrefix(),
195195
'attrName' => $this->getAttrName(),
196-
'attrValue' => $this->getAttrValue(),
196+
'attrValue' => $this->getAttrValue()->getValue(),
197197
];
198198
}
199199
}

0 commit comments

Comments
 (0)