TextGenerator
TextGenerator copied to clipboard
symfony Error - T_ENCAPSED_AND_WHITESPACE
Hey nice project,
but i cant run it :( Maybee you can help.
$TG = new TextGenerator();
$TG->compile("#if{@val == 5|the value equals 5|the value doesn't equal 5}");
echo $TG->generate(array("val"=>5));
Parse error: syntax error, unexpected ''/[a-zA-Z_\x7f-\xff][a-zA-Z0-9' (T_ENCAPSED_AND_WHITESPACE) in [...]/vendor/symfony/expression-language/Parser.php on line 328
Hello @StrongLucky ,
It seems the parse error come from the expression-language package. Which version of expression-language is installed in your project (you can check it in the composer.lock file), and which version of PHP are you currently running ?