Skip to content

Commit a0c4d3f

Browse files
kbondweaverryan
authored andcommitted
use Request::toArray()
1 parent 13d7110 commit a0c4d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/src/EventListener/LiveComponentSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private function parseDataFor(Request $request): array
210210
];
211211
}
212212

213-
$requestData = json_decode($request->getContent(), true, 512, \JSON_THROW_ON_ERROR);
213+
$requestData = $request->toArray();
214214

215215
$request->attributes->set('_live_request_data', [
216216
'data' => $requestData['data'] ?? [],

0 commit comments

Comments
 (0)