Skip to content

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

Merged
umeshp7 merged 3 commits intodevelopfrom
fix/issue-284
Oct 20, 2020
Merged

Replace double-quotes by single-quotes in codegen/php-curl#352
umeshp7 merged 3 commits intodevelopfrom
fix/issue-284

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