Skip to content

Commit eb726fc

Browse files
committed
And now no template child was being written, silly me (:
1 parent 555f79d commit eb726fc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/XmlFileParser.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ private function writeFrame(Frame $frame, ?string $linkPrefix, ?string $typeOver
176176
$data = '';
177177
$globalChildrenWithParentKey = [];
178178
$inheritedKeyValues = [];
179-
if ($shouldWriteGlobal) {
180-
foreach ($frame->getChildren() as $child) {
181-
if ($this->childHasInterestingData($child)) {
182-
$data .= $this->writeFrame($child, $linkPrefix);
183-
if ($child->getName() && $child->getParentKey()) {
184-
$globalChildrenWithParentKey[$child->getParentKey()] = $child->getName();
185-
}
179+
foreach ($frame->getChildren() as $child) {
180+
if ($this->childHasInterestingData($child)) {
181+
$data .= $this->writeFrame($child, $linkPrefix);
182+
if ($shouldWriteGlobal && $child->getName() && $child->getParentKey()) {
183+
$globalChildrenWithParentKey[$child->getParentKey()] = $child->getName();
186184
}
187185
}
186+
}
187+
if ($shouldWriteGlobal) {
188188
foreach ($frame->getInherits() as $templateName) {
189189
$template = $this->templateRegistry->get($templateName);
190190
if (!$template) {

0 commit comments

Comments
 (0)