Skip to content

Commit

Permalink
Fixed a bug with nested inputs of the same type
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Oct 18, 2024
1 parent 2bf447e commit 60a948c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Value/ConvertParserValueVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public function visitObjectVal(ObjectVal $objectVal) : InputValue

$inner = new \stdClass();

foreach ($this->type->getArguments() as $argument) {
// ->toArray() call must be present, otherwise the internal iterator pointer would reset on nested inputs of the same type
foreach ($this->type->getArguments()->toArray() as $argument) {
$this->path->add($argument->getName() . ' <input field>');

if (\property_exists($objectVal->getValue(), $argument->getName())) {
Expand Down

0 comments on commit 60a948c

Please sign in to comment.