Skip to content

Commit 3aaff2f

Browse files
dantleechfelixfbecker
authored andcommitted
Do not use method as argument for pass by reference on Token (microsoft#170)
1 parent 1fd9de1 commit 3aaff2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Node/StringLiteral.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public function getStringContentsText() {
3030
$stringContents = "";
3131
if (isset($this->startQuote)) {
3232
foreach ($this->children as $child) {
33-
$stringContents .= $child->getFullText($this->getFileContents());
33+
$contents = $this->getFileContents();
34+
$stringContents .= $child->getFullText($contents);
3435
}
3536
} else {
3637
// TODO ensure string consistency (all strings should have start / end quote)

0 commit comments

Comments
 (0)