Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symfony Error - T_ENCAPSED_AND_WHITESPACE #4

Open
StrongLucky opened this issue Oct 18, 2018 · 1 comment
Open

symfony Error - T_ENCAPSED_AND_WHITESPACE #4

StrongLucky opened this issue Oct 18, 2018 · 1 comment

Comments

@StrongLucky
Copy link

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
@neveldo
Copy link
Owner

neveldo commented Oct 24, 2018

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants