Skip to content

Commit

Permalink
Update TranscodingTask.php
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
ToothpickFactory authored Nov 5, 2019
1 parent 5f9dac3 commit 46e17be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/TranscodingTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __construct($api, $task_token) {
*/
public function AddStitchVideoItem($url) {
$item = new StitchVideoItem();
if ($this->stitchVideoItems == undefined) {
if (!isset($this->stitchVideoItems)) {
$this->stitchVideoItems = [];
}
$item->url = $url;
Expand Down Expand Up @@ -219,4 +219,4 @@ public function setSubtitlesCopyMode($value) {
$this->subtitles->copy = 0;
}
}
}
}

0 comments on commit 46e17be

Please sign in to comment.