Skip to content

Commit b64f8c6

Browse files
committed
Fix template string variable parent
1 parent 46dad53 commit b64f8c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ private function parseStringLiteralExpression2($parentNode) {
973973
case TokenKind::OpenBraceDollarToken:
974974
$expression->children[] = $this->eat(TokenKind::DollarOpenBraceToken, TokenKind::OpenBraceDollarToken);
975975
if ($this->getCurrentToken()->kind === TokenKind::StringVarname) {
976-
$expression->children[] = $this->parseSimpleVariable($parentNode);
976+
$expression->children[] = $this->parseSimpleVariable($expression);
977977
} else {
978978
$expression->children[] = $this->parseExpression($expression);
979979
}

0 commit comments

Comments
 (0)