Skip to content

Commit 424d36b

Browse files
parse big data
1 parent 9c3d7c1 commit 424d36b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Parser.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -188,11 +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-
$keys = array_keys($this->pathData);
192-
193-
foreach ($keys as $key) {
191+
foreach ($this->pathData as $key => &$val) {
194192
if (\strpos($this->currentPath, $key) !== false) {
195-
$this->pathData[$key] .= $data;
193+
$val .= $data;
196194
}
197195
}
198196
}

0 commit comments

Comments
 (0)