Skip to content

Commit d4eab20

Browse files
committed
fix: deprecations
1 parent e69d6cf commit d4eab20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Provider/BaseVideoProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class BaseVideoProvider extends BaseProvider
4141
* @param ThumbnailInterface $thumbnail
4242
* @param MetadataBuilderInterface|null $metadata
4343
*/
44-
public function __construct(string $name, Filesystem $filesystem, CdnInterface $cdn, ThumbnailInterface $thumbnail, MetadataBuilderInterface $metadata = null)
44+
public function __construct(string $name, Filesystem $filesystem, CdnInterface $cdn, ThumbnailInterface $thumbnail, ?MetadataBuilderInterface $metadata = null)
4545
{
4646
parent::__construct($name, $filesystem, $cdn, $thumbnail);
4747

src/Provider/ImageProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343
protected ImagineInterface $imagineAdapter,
4444
array $allowedExtensions = [],
4545
array $allowedMimeTypes = [],
46-
MetadataBuilderInterface $metadata = null
46+
?MetadataBuilderInterface $metadata = null
4747
) {
4848
parent::__construct($name, $filesystem, $cdn, $thumbnail, $router, $simpleSignatureHasher, $allowedExtensions, $allowedMimeTypes, $metadata);
4949
}

src/Provider/YouTubeProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class YouTubeProvider extends BaseVideoProvider
2626
* @param MetadataBuilderInterface|null $metadata
2727
* @param bool $html5
2828
*/
29-
public function __construct(string $name, Filesystem $filesystem, CdnInterface $cdn, ThumbnailInterface $thumbnail, MetadataBuilderInterface $metadata = null, bool $html5 = false)
29+
public function __construct(string $name, Filesystem $filesystem, CdnInterface $cdn, ThumbnailInterface $thumbnail, ?MetadataBuilderInterface $metadata = null, bool $html5 = false)
3030
{
3131
parent::__construct($name, $filesystem, $cdn, $thumbnail, $metadata);
3232
$this->html5 = $html5;

0 commit comments

Comments
 (0)