Skip to content

🎥 Make videos programmatically with React

fix chromium options setting of null

Alex Fernandez04058a3b33d1
diff --git a/packages/lambda-php/src/RenderParams.php b/packages/lambda-php/src/RenderParams.php
index 64fdda685a..6e7b4d390f 100644
--- a/packages/lambda-php/src/RenderParams.php
+++ b/packages/lambda-php/src/RenderParams.php
@@ -135,7 +135,7 @@ class RenderParams
'frameRange' => $this->getFrameRange(),
'outName' => $this->getOutName(),
'timeoutInMilliseconds' => $this->getTimeoutInMilliseconds(),
- 'chromiumOptions' => $this->getChromiumOptions(),
+ 'chromiumOptions' => $this->getChromiumOptions() === null ? new stdClass() : $this->getChromiumOptions(),
'scale' => $this->getScale(),
'everyNthFrame' => $this->getEveryNthFrame(),
'numberOfGifLoops' => $this->getNumberOfGifLoops(),