Skip to content

Commit 33db535

Browse files
author
Dominik Liebler
committed
Merge pull request DesignPatternsPHP#63 from lleitep3/patch-1
Change Hard code by $key, $val
2 parents a813157 + bd51037 commit 33db535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Decorator/RenderInXml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function renderData()
2121
$doc = new \DOMDocument();
2222

2323
foreach ($output as $key => $val) {
24-
$doc->appendChild($doc->createElement('foo', 'bar'));
24+
$doc->appendChild($doc->createElement($key, $val));
2525
}
2626

2727
return $doc->saveXML();

0 commit comments

Comments
 (0)