Skip to content

Commit 5ac4378

Browse files
committed
Use Json::read()
1 parent 60fd197 commit 5ac4378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use com\amazon\aws\lambda\{Context, Environment, Handler};
44
use lang\{ClassLoader, Throwable, IllegalArgumentException};
5+
use text\json\Json;
56
use util\UUID;
67
use util\cmd\Console;
78

@@ -67,7 +68,7 @@ public function run(): int {
6768
];
6869

6970
try {
70-
$lambda->invoke(json_decode($event, true), new Context($headers, $variables));
71+
$lambda->invoke(Json::read($event), new Context($headers, $variables));
7172
} catch (Throwable $e) {
7273
Console::$err->writeLine($e);
7374
$status= 1;

0 commit comments

Comments
 (0)