Skip to content

Commit

Permalink
Fixed payload resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Mar 25, 2024
1 parent 9356d4b commit 58274ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public function resolve(Request $request, ArgumentMetadata $argument): iterable
throw new \LogicException(sprintf('Mapping variadic argument "$%s" is not supported.', $argument->getName()));
}

$attribute->metadata = $argument;

if ('array' !== $argument->getType()) {
return [$attribute];
}
Expand All @@ -77,8 +79,6 @@ public function resolve(Request $request, ArgumentMetadata $argument): iterable
$argument->isNullable(),
$argument->getAttributes(),
);
} else {
$attribute->metadata = $argument;
}

return [$attribute];
Expand Down

0 comments on commit 58274ad

Please sign in to comment.