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

Cannot use literal @ sign in PHP expressions #992

Open
julienfalque opened this issue Apr 26, 2019 · 0 comments
Open

Cannot use literal @ sign in PHP expressions #992

julienfalque opened this issue Apr 26, 2019 · 0 comments

Comments

@julienfalque
Copy link
Contributor

I have an issue that is similar to what #516 (comment) reported: when I use a literal @ sign in a PHP expression, it is always parsed as a reference, e.g.:

<(new App\Email('foo@bar.baz'))>

and

<(new App\Email('foo\@bar.baz'))>

both result in trying to eval the following PHP code:

new App\Email('foo\$_instances['bar.baz')']

which produces a syntax error.

The only workaround I found is to replace @ with \x40 (in a double quoted string).

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

No branches or pull requests

2 participants