Skip to content

Commit 46e17be

Browse files
Update TranscodingTask.php
Updated the AddStitchVideoItem to not check explicitly for undefined but instead use the isset() method. Newer versions of PHP will throw the following error when checking for undefined. ErrorException: Use of undefined constant undefined - assumed 'undefined' (this will throw an Error in a future version of PHP)
1 parent 5f9dac3 commit 46e17be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Classes/TranscodingTask.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct($api, $task_token) {
6565
*/
6666
public function AddStitchVideoItem($url) {
6767
$item = new StitchVideoItem();
68-
if ($this->stitchVideoItems == undefined) {
68+
if (!isset($this->stitchVideoItems)) {
6969
$this->stitchVideoItems = [];
7070
}
7171
$item->url = $url;
@@ -219,4 +219,4 @@ public function setSubtitlesCopyMode($value) {
219219
$this->subtitles->copy = 0;
220220
}
221221
}
222-
}
222+
}

0 commit comments

Comments
 (0)