phpstan update

This commit is contained in:
Pierre Rudloff 2021-02-07 12:42:03 +01:00
parent 50fe879f16
commit 36ba147430
4 changed files with 27 additions and 11 deletions

View file

@ -301,7 +301,14 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
}
} else {
// Start streaming the first video.
$this->startVideoStream(current($this->videos));
$video = current($this->videos);
if ($video) {
$this->startVideoStream($video);
} else {
$this->push_error('Playlist was empty');
$this->finish();
$this->isComplete = true;
}
}
}