Skip to content

Commit

Permalink
Fixed deserialization of requests with properties containing undersco…
Browse files Browse the repository at this point in the history
…res (#48)
  • Loading branch information
sspat authored Mar 6, 2020
1 parent aba3638 commit dbc0cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CodeGenerator/Dto/PhpParserDtoFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,15 +590,15 @@ private function generateMethodParameter(MethodParameterDefinition $definition)
{
return $this
->factory
->param($this->namingStrategy->stringToMethodName($definition->name()))
->param($definition->name())
->setType($definition->iterableType() !== null ? 'array' : $definition->type());
}

private function getAssignmentDefinition(string $name) : Assign
{
return new Assign(
new Variable('this->' . $name),
new Variable($this->namingStrategy->stringToMethodName($name))
new Variable($name)
);
}

Expand Down

0 comments on commit dbc0cb4

Please sign in to comment.