Skip to content

Commit b0264e1

Browse files
authored
Optimization of work with a large xml
2 parents f44f2b9 + 424d36b commit b0264e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ protected function addData($parser, $data)
188188
//Having a path data entry means at least 1 callback is interested in
189189
//the data. Loop through each path here and, if inside that path, add
190190
//the data
191-
foreach ($this->pathData as $key => $val) {
191+
foreach ($this->pathData as $key => &$val) {
192192
if (\strpos($this->currentPath, $key) !== false) {
193-
$this->pathData[$key] .= $data;
193+
$val .= $data;
194194
}
195195
}
196196
}

0 commit comments

Comments
 (0)