2 parents e63a12f + 0fc0ac3 commit e30df1aCopy full SHA for e30df1a
1 file changed
src/Results/SettledResult.php
@@ -99,15 +99,15 @@ public function toResponse($request)
99
*
100
* @throws Exception
101
*/
102
- public function throw(?int $numberOfBacktraces)
+ public function throw(?int $numberOfBacktraces = null)
103
{
104
if (!$this->isError()) {
105
return $this;
106
}
107
108
throw new LambdaExecutionException(sprintf('Lambda Execution Exception for %s: "%s".', ...[
109
get_class($this->function),
110
- $this->errorAsString($numberOfBacktraces)
+ $this->errorAsString($numberOfBacktraces ?? 2)
111
]));
112
113
0 commit comments