Given this code:
<?php
$is = "is";
$a = "a ";
$test = "test";
echo "this {$is} $a{$test}";
?>
PHPParser gives these errors on the last echo line:
';' expected
expression expected
unexpected token: 'a'
This code is valid in PHP.
(Naturally, there's the workaround of also enclosing $a as {$a} or not enclosing $test if possible.)
fixed in trunk