TextGenerator icon indicating copy to clipboard operation
TextGenerator copied to clipboard

symfony Error - T_ENCAPSED_AND_WHITESPACE

Open StrongLucky opened this issue 7 years ago • 1 comments

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

StrongLucky avatar Oct 18 '18 10:10 StrongLucky

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 ?

neveldo avatar Oct 24 '18 12:10 neveldo