Skip to content

Commit b954f98

Browse files
committed
Force timeout and memory to be integers. Fixes #28
1 parent ce8b511 commit b954f98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LambdaFunction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ public function toDeploymentArray()
327327
'Handler' => $this->handler(),
328328
'Code' => $this->makePackage()->deploymentConfiguration(),
329329
'Description' => $this->description(),
330-
'Timeout' => $this->timeout(),
331-
'MemorySize' => $this->memory(),
330+
'Timeout' => (int)$this->timeout(),
331+
'MemorySize' => (int)$this->memory(),
332332
'Layers' => $this->layers(),
333333
'Publish' => true,
334334
];

0 commit comments

Comments
 (0)