Skip to content

Commit a475f36

Browse files
committed
Fix #486: take in account the inExp flag for reducing T_INTERPOLATE
1 parent a5a8d79 commit a475f36

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Compiler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,6 +2630,9 @@ protected function reduce($value, $inExp = false)
26302630

26312631
case Type::T_INTERPOLATE:
26322632
$value[1] = $this->reduce($value[1]);
2633+
if ($inExp) {
2634+
return $value[1];
2635+
}
26332636

26342637
return $value;
26352638

0 commit comments

Comments
 (0)