Skip to content

Escape backslash before string termination #12504

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

Merged

Conversation

greg0ire
Copy link
Contributor

@greg0ire greg0ire commented Oct 17, 2019

To php, 'App\' looks like a string that contains a quote and is not finished. Using \\, the only escape sequence that works within single quotes, should fix the issue.
This was introduced in 2a5b114 , which is only present on the master branch at the time, that's why I'm targetting master.

To php, 'App\' looks like a string that contains a quote and is not
finished. Using \\, the only escape sequence that works within single
quotes, should fix the issue.
This was introduced in 2a5b114 , which
is only present on the master branch at the time.
@javiereguiluz javiereguiluz changed the base branch from master to 4.3 October 18, 2019 14:46
@javiereguiluz javiereguiluz force-pushed the escape-backslash-before-end-of-string branch from 870cde0 to e92115e Compare October 18, 2019 14:46
@javiereguiluz
Copy link
Member

Thanks Grégoire! Merged in 4.3

javiereguiluz added a commit that referenced this pull request Oct 18, 2019
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #12504).

Discussion
----------

Escape backslash before string termination

To php, `'App\'` looks like a string that contains a quote and is not finished. Using `\\`, the only escape sequence that works within single quotes, should fix the issue.
This was introduced in 2a5b114 , which is only present on the master branch at the time, that's why I'm targetting master.

Commits
-------

e92115e Escape backslash before string termination
@javiereguiluz javiereguiluz merged commit e92115e into symfony:4.3 Oct 18, 2019
@greg0ire greg0ire deleted the escape-backslash-before-end-of-string branch October 18, 2019 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants