Stronger typying now that we target PHP 7.4

This commit is contained in:
Pierre Rudloff 2023-03-21 20:18:21 +01:00
parent b23ce88be8
commit 71647158d3
No known key found for this signature in database
5 changed files with 31 additions and 29 deletions

View file

@ -24,7 +24,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @var Video[]
*/
private $videos = [];
private array $videos = [];
/**
* Stream used to store data before it is sent to the browser.
@ -38,21 +38,21 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @var StreamInterface
*/
protected $curVideoStream;
protected StreamInterface $curVideoStream;
/**
* True if the archive is complete.
*
* @var bool
*/
private $isComplete = false;
private bool $isComplete = false;
/**
* Downloader object.
*
* @var Downloader
*/
protected $downloader;
protected Downloader $downloader;
/**
* PlaylistArchiveStream constructor.