Skip to content

Commit

Permalink
fix from php value generation on command types
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jun 10, 2020
1 parent fdca3f5 commit fcecb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function calculateFromPhpValueFor(Argument $a, ?string $resolvedType, array $def
CODE;
}

return $typeConfig->fromPhpValue()($a->type(), "data['{$a->name()}']");
return $typeConfig->fromPhpValue()($a->type(), "this->payload['{$a->name()}']");
}

$builder = $config->fromPhpValueFor($definition->type());
Expand Down

0 comments on commit fcecb94

Please sign in to comment.