Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.2",
"php": ">=7.2",
"symfony/process": "^4.2|^5.0"
},
"require-dev": {
Expand Down
6 changes: 3 additions & 3 deletions src/Media/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Media extends ExportMedia implements MediaInterface
* @return Media
* @throws MediaException
*/
public function DRM(string $encryption, callable $options = null)
public function DRM(string $encryption, ?callable $options = null)
{
$class_name = '\Shaka\Options\DRM\\' . ucwords($encryption);

Expand All @@ -47,7 +47,7 @@ public function DRM(string $encryption, callable $options = null)
* @return $this
* @throws MediaException
*/
public function HLS(string $output, callable $options = null)
public function HLS(string $output, ?callable $options = null)
{
$hls = new HLS();
$hls = $hls->HLSMasterPlaylistOutput($output);
Expand All @@ -62,7 +62,7 @@ public function HLS(string $output, callable $options = null)
* @return $this
* @throws MediaException
*/
public function DASH(string $output, callable $options = null)
public function DASH(string $output, ?callable $options = null)
{
$dash = new DASH();
$dash = $dash->mpdOutput($output);
Expand Down
6 changes: 3 additions & 3 deletions src/Media/MediaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ interface MediaInterface
* @param callable|null $options
* @return $this
*/
public function DASH(string $output, callable $options = null);
public function DASH(string $output, ?callable $options = null);

/**
* @param string $output
* @param callable|null $options
* @return $this
*/
public function HLS(string $output, callable $options = null);
public function HLS(string $output, ?callable $options = null);

/**
* @param string $encryption
* @param callable|null $options
* @return Media
*/
public function DRM(string $encryption, callable $options = null);
public function DRM(string $encryption, ?callable $options = null);
}
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @return mixed
* @throws \Shaka\Exception\ProcessException
*/
function shaka(string $binary = null)
function shaka(?string $binary = null)
{
return \Shaka\Shaka::initialize($binary);
}
Expand Down