Skip to content

Commit e83485a

Browse files
committed
fix: encode request body as JSON in ActionCaller
1 parent dd4f01a commit e83485a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Routing/ActionCaller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __invoke(ServerRequestInterface $request): mixed
3232
$inputSchema = $inputSchemaClass->newInstance();
3333

3434
$input = $this->schemaMapper->toObject(
35-
json: (array)($request->getParsedBody() ?? []),
35+
json: \json_encode((array)($request->getParsedBody() ?? [])),
3636
class: $inputSchema->class,
3737
);
3838

0 commit comments

Comments
 (0)