We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af46fd4 commit 1a53b92Copy full SHA for 1a53b92
2 files changed
ChangeLog.md
@@ -3,6 +3,9 @@ AWS Lambda change log
3
4
## ?.?.? / ????-??-??
5
6
+* Fixed issze #31: Event is not always an array (when using JSON library
7
+ 6.0+, see https://github.com/xp-forge/json/pull/18
8
+ (@thekid)
9
* Fixed issue #29: Implicitly marking parameter as nullable is deprecated
10
(@thekid)
11
src/main/php/xp/lambda/AwsRunner.class.php
@@ -62,7 +62,7 @@ public static function main($args) {
62
try {
63
$r= $api->receive('invocation/next');
64
$context= new Context($r->headers(), $variables);
65
- $event= 0 === $context->payloadLength ? null : Json::read(new StreamInput($r->in()));
+ $event= 0 === $context->payloadLength ? null : (array)Json::read(new StreamInput($r->in()));
66
67
$lambda->invoke($event, $context);
68
} catch (Throwable $t) {
0 commit comments