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

Replace double-quotes by single-quotes in codegen/php-curl #352

Merged
merged 3 commits into from
Oct 20, 2020

Conversation

webholik
Copy link
Contributor

@webholik webholik commented Oct 6, 2020

Solves #284

PHP expands variables and escape sequences for special characters inside double-quotes. This is a problem if body of a request contains $ sign. Using single-quotes solves this problem. This is an alternative solution to #285 .

@webholik webholik requested a review from umeshp7 October 6, 2020 12:48
@umeshp7
Copy link
Contributor

umeshp7 commented Oct 10, 2020

Can you add a newman test/ unit test with $ present in the body? @webholik

This is to verify that having a string of type $name is interpreted
correctly by php in the generated code.
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

Successfully merging this pull request may close these issues.

2 participants