Skip to content

Commit

Permalink
chore: pass correct param names in request body for php
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Jan 6, 2025
1 parent 24901e1 commit dd0ff33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/twilio-php/models/modelClass.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class {{classname}} implements \JsonSerializable
{{/vars}}
public function __construct(array $payload = []) {
{{#vars}}
$this->{{#lambda.camelcase}}{{baseName}}{{/lambda.camelcase}} = Values::array_get($payload, '{{#lambda.camelcase}}{{baseName}}{{/lambda.camelcase}}');
$this->{{#lambda.camelcase}}{{baseName}}{{/lambda.camelcase}} = Values::array_get($payload, '{{name}}');
{{/vars}}
}

Expand Down

0 comments on commit dd0ff33

Please sign in to comment.