Skip to content

🎥 Make videos programmatically with React

chromiumOptions can be null

Jonny Burgerace57638f6c8
diff --git a/packages/lambda-php/src/RenderParams.php b/packages/lambda-php/src/RenderParams.php
index 1a0318ebc4..bb365a2d39 100644
--- a/packages/lambda-php/src/RenderParams.php
+++ b/packages/lambda-php/src/RenderParams.php
@@ -114,6 +114,11 @@ class RenderParams
?string $deleteAfter = null
)
{
+ if ($chromiumOptions === null) {
+ $this->chromiumOptions = new stdClass();
+ } else {
+ $this->chromiumOptions = $chromiumOptions;
+ }
$this->data = $data;
$this->composition = $composition;
$this->codec = $codec;
@@ -129,7 +134,6 @@ class RenderParams
$this->frameRange = $frameRange;
$this->outName = $outName;
$this->timeoutInMilliseconds = $timeoutInMilliseconds;
- $this->chromiumOptions = $chromiumOptions;
$this->scale = $scale;
$this->everyNthFrame = $everyNthFrame;
$this->numberOfGifLoops = $numberOfGifLoops;