summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Config/Output.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Config/Output.php b/src/Config/Output.php
index cab87da..4117717 100644
--- a/src/Config/Output.php
+++ b/src/Config/Output.php
@@ -263,14 +263,14 @@ trait Output
$doc = new DomDocument('1.0', 'UTF-8');
$root = $doc->createElement($root_name);
foreach ($this->convertToUtf8($this->getQueryIterator()) as $row) {
- $row = $doc->createElement($row_name);
- array_walk($row, function ($value) use (&$row, $doc, $cell_name) {
+ $rowElement = $doc->createElement($row_name);
+ array_walk($row, function ($value) use (&$rowElement, $doc, $cell_name) {
$content = $doc->createTextNode($value);
$cell = $doc->createElement($cell_name);
$cell->appendChild($content);
- $row->appendChild($cell);
+ $rowElement->appendChild($cell);
});
- $root->appendChild($row);
+ $root->appendChild($rowElement);
}
$doc->appendChild($root);