Skip to content

Commit 3905019

Browse files
committed
Cast event to an array when reading in local runtime
More of #31 fix
1 parent a3d79be commit 3905019

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/php/xp/lambda/RunLambda.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function run(): int {
6868
];
6969

7070
try {
71-
$lambda->invoke(Json::read($event), new Context($headers, $variables));
71+
$lambda->invoke((array)Json::read($event), new Context($headers, $variables));
7272
} catch (Throwable $e) {
7373
Console::$err->writeLine($e);
7474
$status= 1;

0 commit comments

Comments
 (0)