Skip to content

Commit 8910434

Browse files
aarondfrancisclaude
andcommitted
Merge main into refactor, resolve Runtime.php conflict
Main added new runtimes as class constants; our refactor converted Runtime to a backed enum. Kept the enum format with all runtimes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2 parents e29df01 + e30df1a commit 8910434

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Results/SettledResult.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
*/
4141
public function isError()
4242
{
43-
return $this->raw->get('FunctionError') !== '';
43+
return $this->raw->hasKey('FunctionError') && $this->raw->get('FunctionError') !== '';
4444
}
4545

4646
/**
@@ -79,15 +79,15 @@ public function toResponse(mixed $request)
7979
*
8080
* @throws Exception
8181
*/
82-
public function throw(?int $numberOfBacktraces)
82+
public function throw(?int $numberOfBacktraces = null)
8383
{
8484
if (!$this->isError()) {
8585
return $this;
8686
}
8787

8888
throw new LambdaExecutionException(sprintf('Lambda Execution Exception for %s: "%s".', ...[
8989
get_class($this->function),
90-
$this->errorAsString($numberOfBacktraces)
90+
$this->errorAsString($numberOfBacktraces ?? 2)
9191
]));
9292
}
9393

0 commit comments

Comments
 (0)