Skip to content

Commit

Permalink
Update Options.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa-norouzi authored Dec 8, 2024
1 parent 5d52f36 commit 1bc87ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Options
// Thumbnail Images Options
private bool $writeThumbnail = false;
private bool $writeAllThumbnails = false;
private string $convertThumbnail ;
private string $convertThumbnail = null ;

Check failure on line 153 in src/Options.php

View workflow job for this annotation

GitHub Actions / PHPStan

Property YoutubeDl\Options::$convertThumbnail (string) does not accept default value of type null.


// Verbosity / Simulation Options
Expand Down Expand Up @@ -1027,6 +1027,7 @@ public function writeThumbnail(bool $writeThumbnail): self

/**
* Convert thumbnail to another format.
* supported: jpg, png, webp
*/
public function convertThumbnail(string $format): self
{
Expand Down

0 comments on commit 1bc87ce

Please sign in to comment.